DMSwarmDataBucketQueryDMSwarmDataFieldByName — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMSwarmDataBucketQueryDMSwarmDataFieldByName

Test whether a `DMSwarmDataBucket` contains a `DMSwarmDataField` with the given name.

## Synopsis

    PetscErrorCode DMSwarmDataBucketQueryDMSwarmDataFieldByName(DMSwarmDataBucket db, const char name[], PetscBool *found)

Not Collective

## Input Parameters

- db - the `DMSwarmDataBucket`

- name - the field name to look up

## Output Parameter

- found - `PETSC_TRUE` if a field with the given name is registered, otherwise `PETSC_FALSE`

## See Also

`DMSwarmDataBucket`, `DMSwarmDataField`, `DMSwarmDataBucketGetDMSwarmDataFieldByName()`, `DMSwarmDataBucketGetDMSwarmDataFieldIdByName()`

## Level

developer

## Location

src/dm/impls/swarm/data_bucket.c

Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages