Persistent solver-particle-field catalog implementation. More...
Go to the source code of this file.
Macros | |
| #define | PARTICLE_FIELD_ENTRY(field_id_, name_, alias1_, alias2_, components_, type_, registration_, capabilities_, default_, scatter_target_, dimension_) |
Functions | |
| PetscErrorCode | ParticleFieldGetDescriptor (ParticleFieldId field_id, const ParticleFieldDescriptor **descriptor) |
| Validates and returns one immutable particle-field descriptor. | |
| PetscErrorCode | ParticleFieldIdFromScatterTarget (FieldId target, ParticleFieldId *field_id) |
| Returns the particle field scattering to one Eulerian field. | |
| PetscErrorCode | ParticleFieldIdFromName (const char *field_name, ParticleFieldId *field_id) |
| Resolves particle field text once by searching canonical names and aliases. | |
| PetscErrorCode | ParticleFieldTryIdFromName (const char *field_name, ParticleFieldId *field_id, PetscBool *found) |
| Searches canonical names and aliases, reporting a miss instead of failing. | |
| const char * | ParticleFieldName (ParticleFieldId field_id) |
| Returns the canonical PETSc name without performing name lookup. | |
Variables | |
| static const ParticleFieldDescriptor | gParticleFieldCatalog [PARTICLE_FIELD_ID_COUNT] |
Persistent solver-particle-field catalog implementation.
Definition in file particle_field_catalog.c.
| #define PARTICLE_FIELD_ENTRY | ( | field_id_, | |
| name_, | |||
| alias1_, | |||
| alias2_, | |||
| components_, | |||
| type_, | |||
| registration_, | |||
| capabilities_, | |||
| default_, | |||
| scatter_target_, | |||
| dimension_ | |||
| ) |
Definition at line 9 of file particle_field_catalog.c.
| PetscErrorCode ParticleFieldGetDescriptor | ( | ParticleFieldId | field_id, |
| const ParticleFieldDescriptor ** | descriptor | ||
| ) |
Validates and returns one immutable particle-field descriptor.
Return immutable metadata for a valid particle field ID.
Definition at line 72 of file particle_field_catalog.c.
| PetscErrorCode ParticleFieldIdFromScatterTarget | ( | FieldId | target, |
| ParticleFieldId * | field_id | ||
| ) |
Returns the particle field scattering to one Eulerian field.
Find the particle field that scatters to an Eulerian field.
Definition at line 95 of file particle_field_catalog.c.
| PetscErrorCode ParticleFieldIdFromName | ( | const char * | field_name, |
| ParticleFieldId * | field_id | ||
| ) |
Resolves particle field text once by searching canonical names and aliases.
Resolve a canonical name or registered alias at a text-ingress boundary.
Definition at line 118 of file particle_field_catalog.c.
| PetscErrorCode ParticleFieldTryIdFromName | ( | const char * | field_name, |
| ParticleFieldId * | field_id, | ||
| PetscBool * | found | ||
| ) |
Searches canonical names and aliases, reporting a miss instead of failing.
Look a name up without treating an unknown name as an error.
Definition at line 136 of file particle_field_catalog.c.
| const char * ParticleFieldName | ( | ParticleFieldId | field_id | ) |
Returns the canonical PETSc name without performing name lookup.
Return the canonical PETSc DMSwarm name for an ID.
Definition at line 169 of file particle_field_catalog.c.
|
static |
Definition at line 14 of file particle_field_catalog.c.