Defines a registry for storing solution fields.
|
subroutine | field_registry_init (this, size, expansion_size) |
| Constructor. More...
|
|
subroutine | field_registry_free (this) |
| Destructor. More...
|
|
subroutine | expand (this) |
| Expand the fields array so as to accomodate more fields. More...
|
|
subroutine | add_field (this, dof, fld_name, ignore_existing) |
| Add a field to the registry. More...
|
|
pure integer function | n_fields (this) |
| Get the number of fields stored in the registry. More...
|
|
pure integer function | get_size (this) |
| Get the size of the fields array. More...
|
|
pure integer function | get_expansion_size (this) |
| Get the expansion size. More...
|
|
type(field_t) function, pointer | get_field_by_index (this, i) |
| Get pointer to a stored field by index. More...
|
|
type(field_t) function, pointer | get_field_by_name (this, name) |
| Get pointer to a stored field by field name. More...
|
|
logical function | field_exists (this, name) |
| Check if a field with a given name is already in the registry. More...
|
|
◆ 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()
subroutine field_registry::expand |
( |
class(field_registry_t), intent(inout) |
this | ) |
|
|
private |
◆ field_exists()
logical function field_registry::field_exists |
( |
class(field_registry_t), intent(in), target |
this, |
|
|
character(len=*), intent(in) |
name |
|
) |
| |
|
private |
◆ field_registry_free()
subroutine field_registry::field_registry_free |
( |
class(field_registry_t), intent(inout) |
this | ) |
|
|
private |
◆ field_registry_init()
subroutine field_registry::field_registry_init |
( |
class(field_registry_t), intent(inout) |
this, |
|
|
integer, intent(in), optional |
size, |
|
|
integer, intent(in), optional |
expansion_size |
|
) |
| |
|
private |
- 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()
pure integer function field_registry::get_expansion_size |
( |
class(field_registry_t), intent(in) |
this | ) |
|
|
private |
◆ get_field_by_index()
type(field_t) function, pointer field_registry::get_field_by_index |
( |
class(field_registry_t), intent(in), target |
this, |
|
|
integer, intent(in) |
i |
|
) |
| |
|
private |
◆ get_field_by_name()
type(field_t) function, pointer field_registry::get_field_by_name |
( |
class(field_registry_t), intent(in), target |
this, |
|
|
character(len=*), intent(in) |
name |
|
) |
| |
|
private |
◆ get_size()
pure integer function field_registry::get_size |
( |
class(field_registry_t), intent(in) |
this | ) |
|
|
private |
◆ n_fields()
pure integer function field_registry::n_fields |
( |
class(field_registry_t), intent(in) |
this | ) |
|
|
private |
◆ neko_field_registry