Neko
0.8.1
A portable framework for high-order spectral element flow simulations
|
Defines a registry for storing solution fields. More...
Data Types | |
type | field_registry_t |
Functions/Subroutines | |
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... | |
Variables | |
type(field_registry_t), target, public | neko_field_registry |
Global field registry. More... | |
Defines a registry for storing solution fields.
|
private |
Add a field to the registry.
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.
|
private |
Expand the fields array so as to accomodate more fields.
Definition at line 118 of file field_registry.f90.
|
private |
Check if a field with a given name is already in the registry.
Definition at line 229 of file field_registry.f90.
|
private |
Destructor.
Definition at line 104 of file field_registry.f90.
|
private |
Constructor.
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.
|
private |
Get the expansion size.
Definition at line 182 of file field_registry.f90.
|
private |
Get pointer to a stored field by index.
Definition at line 190 of file field_registry.f90.
|
private |
Get pointer to a stored field by field name.
Definition at line 205 of file field_registry.f90.
|
private |
Get the size of the fields array.
Definition at line 174 of file field_registry.f90.
|
private |
Get the number of fields stored in the registry.
Definition at line 166 of file field_registry.f90.
type(field_registry_t), target, public field_registry::neko_field_registry |
Global field registry.
Definition at line 75 of file field_registry.f90.