Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
field_registry::field_registry_t Type Reference
Collaboration diagram for field_registry::field_registry_t:

Public Member Functions

procedure, pass(thisinit (this, size, expansion_size)
 Constructor.
 
procedure, pass(thisfree (this)
 Destructor.
 
procedure, pass(thisadd_field (this, dof, fld_name, ignore_existing)
 Add a field to the registry.
 
procedure, pass(thisn_fields (this)
 Get the number of fields in the registry.
 
procedure, pass(thisget_field_by_index (this, i)
 Get pointer to a stored field by index.
 
procedure, pass(thisget_field_by_name (this, name)
 Get pointer to a stored field by name.
 
procedure, pass(thisget_expansion_size (this)
 Get the expansion_size
 
procedure, pass(thisget_size (this)
 Get total allocated size of fields.
 
procedure, pass(thisfield_exists (this, name)
 Check if a field with a given name is already in the registry.
 
generic get_field (this, i)
 Get pointer to a stored field by index.
 
generic get_field (this, name)
 Get pointer to a stored field by name.
 

Private Member Functions

procedure, pass(this), private expand (this)
 Expand the fields array so as to accomodate more fields.
 

Private Attributes

type(field_t), dimension(:), allocatable, private fields
 List of fields stored.
 
integer, private n
 Number of registered fields.
 
integer, private expansion_size
 The size the fields array is increased by upon reallocation.
 

Detailed Description

Definition at line 44 of file field_registry.f90.

Member Function/Subroutine Documentation

◆ add_field()

procedure, pass(this) field_registry::field_registry_t::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 
)
Parameters
dofThe map of degrees of freedom.
fld_nameThe name of the field.
ignore_existingIf 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 58 of file field_registry.f90.

◆ expand()

procedure, pass(this), private field_registry::field_registry_t::expand ( class(field_registry_t), intent(inout this)
private

Definition at line 52 of file field_registry.f90.

◆ field_exists()

procedure, pass(this) field_registry::field_registry_t::field_exists ( class(field_registry_t), intent(in), target  this,
character(len=*), intent(in name 
)

Definition at line 70 of file field_registry.f90.

◆ free()

procedure, pass(this) field_registry::field_registry_t::free ( class(field_registry_t), intent(inout this)

Definition at line 56 of file field_registry.f90.

◆ get_expansion_size()

procedure, pass(this) field_registry::field_registry_t::get_expansion_size ( class(field_registry_t), intent(in this)

Definition at line 66 of file field_registry.f90.

◆ get_field() [1/2]

generic field_registry::field_registry_t::get_field ( class(field_registry_t), intent(in), target  this,
integer, intent(in i 
)

Definition at line 71 of file field_registry.f90.

Here is the call graph for this function:

◆ get_field() [2/2]

generic field_registry::field_registry_t::get_field ( class(field_registry_t), intent(in), target  this,
character(len=*), intent(in name 
)

Definition at line 71 of file field_registry.f90.

◆ get_field_by_index()

procedure, pass(this) field_registry::field_registry_t::get_field_by_index ( class(field_registry_t), intent(in), target  this,
integer, intent(in i 
)

Definition at line 62 of file field_registry.f90.

◆ get_field_by_name()

procedure, pass(this) field_registry::field_registry_t::get_field_by_name ( class(field_registry_t), intent(in), target  this,
character(len=*), intent(in name 
)

Definition at line 64 of file field_registry.f90.

◆ get_size()

procedure, pass(this) field_registry::field_registry_t::get_size ( class(field_registry_t), intent(in this)

Definition at line 68 of file field_registry.f90.

◆ init()

procedure, pass(this) field_registry::field_registry_t::init ( class(field_registry_t), intent(inout this,
integer, intent(in), optional  size,
integer, intent(in), optional  expansion_size 
)
Parameters
sizeThe allocation size of fields on init.
expansion_sizeThe number of entries added to fields on expansion.

Definition at line 54 of file field_registry.f90.

◆ n_fields()

procedure, pass(this) field_registry::field_registry_t::n_fields ( class(field_registry_t), intent(in this)

Definition at line 60 of file field_registry.f90.

Member Data Documentation

◆ expansion_size

integer, private field_registry::field_registry_t::expansion_size
private

Definition at line 50 of file field_registry.f90.

◆ fields

type(field_t), dimension(:), allocatable, private field_registry::field_registry_t::fields
private

Definition at line 46 of file field_registry.f90.

◆ n

integer, private field_registry::field_registry_t::n
private

Definition at line 48 of file field_registry.f90.


The documentation for this type was generated from the following file: