Defines a registry for storing solution fields.
|
| subroutine | field_registry_init (this, size, expansion_size) |
| | Constructor.
|
| |
| subroutine | field_registry_free (this) |
| | Destructor.
|
| |
| subroutine | expand (this) |
| | Expand the fields array so as to accomodate more fields.
|
| |
| subroutine | add_field (this, dof, fld_name, ignore_existing) |
| | Add a field to the registry.
|
| |
| pure integer function | n_fields (this) |
| | Get the number of fields stored in the registry.
|
| |
| pure integer function | get_size (this) |
| | Get the size of the fields array.
|
| |
| pure integer function | get_expansion_size (this) |
| | Get the expansion size.
|
| |
| type(field_t) function, pointer | get_field_by_index (this, i) |
| | Get pointer to a stored field by index.
|
| |
| type(field_t) function, pointer | get_field_by_name (this, name) |
| | Get pointer to a stored field by field name.
|
| |
| logical function | field_exists (this, name) |
| | Check if a field with a given name is already in the registry.
|
| |
◆ add_field()
| subroutine field_registry::add_field |
( |
class(field_registry_t), intent(inout) |
this, |
|
|
type(dofmap_t), intent(in), target |
dof, |
|
|
character(len=*), intent(in), target |
fld_name, |
|
|
logical, intent(in), optional |
ignore_existing |
|
) |
| |
|
private |
- Parameters
-
| dof | The map of degrees of freedom. |
| fld_name | The name of the field. |
| ignore_existing | If true, will do nothing if the field is already in the registry. If false, will throw an error. Optional, defaults to false. |
Definition at line 134 of file field_registry.f90.
◆ expand()
◆ field_exists()
◆ field_registry_free()
◆ field_registry_init()
- Parameters
-
| size | The allocation size of fields on init. |
| expansion_size | The number of entries added to fields on expansion. |
Definition at line 81 of file field_registry.f90.
◆ get_expansion_size()
◆ get_field_by_index()
◆ get_field_by_name()
◆ get_size()
◆ n_fields()
◆ neko_field_registry