Neko 1.99.2
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
registry::registry_t Type Reference
Collaboration diagram for registry::registry_t:

Public Member Functions

procedure, pass(thisinit (this, size, expansion_size)
 Constructor.
 
procedure, pass(thisfree (this)
 Destructor.
 
procedure, pass(thisadd_field (this, dof, name, ignore_existing)
 Add a field to the registry.
 
procedure, pass(thisadd_vector (this, n, name, ignore_existing)
 Add a vector to the registry.
 
procedure, pass(thisadd_matrix (this, nrows, ncols, name, ignore_existing)
 Add a matrix to the registry.
 
procedure, pass(thisadd_real_scalar (this, value, name, ignore_existing)
 Add a real scalar to the registry.
 
procedure, pass(thisadd_integer_scalar (this, value, name, ignore_existing)
 Add an integer scalar to the registry.
 
procedure, pass(thisadd_alias (this, alias, name)
 Add an alias to a field in the registry.
 
procedure, pass(thisget_field_by_name (this, name)
 Get pointer to a stored field by name.
 
procedure, pass(thisget_vector_by_name (this, name)
 Get pointer to a stored vector by name.
 
procedure, pass(thisget_matrix_by_name (this, name)
 Get pointer to a stored matrix by name.
 
procedure, pass(thisget_real_scalar_by_name (this, name)
 Get pointer to a stored real scalar by name.
 
procedure, pass(thisget_integer_scalar_by_name (this, name)
 Get pointer to a stored integer scalar by name.
 
generic get_field (this, name)
 Generic field getter.
 
generic get_vector (this, name)
 Generic vector getter.
 
generic get_matrix (this, name)
 Generic matrix getter.
 
generic get_real_scalar (this, name)
 Generic real scalar getter.
 
generic get_integer_scalar (this, name)
 Generic integer scalar getter.
 
procedure, pass(thisentry_exists (this, name)
 Check if an entry with a given name is already in the registry.
 
procedure, pass(thisfield_exists (this, name)
 Check if a field with a given name is already in the registry.
 
procedure, pass(thisvector_exists (this, name)
 Check if a vector with a given name is already in the registry.
 
procedure, pass(thismatrix_exists (this, name)
 Check if a matrix with a given name is already in the registry.
 
procedure, pass(thisreal_scalar_exists (this, name)
 Check if a real scalar with a given name is already in the registry.
 
procedure, pass(thisinteger_scalar_exists (this, name)
 Check if an integer scalar with a given name is already in the registry.
 
procedure, pass(thisscalar_exists (this, name)
 Backwards compatible scalar existence check (real).
 
procedure, pass(thisget_size (this)
 Get total allocated size of fields.
 
procedure, pass(thisn_entries (this)
 Get number of registered entries.
 
procedure, pass(thisn_fields (this)
 Get the number of fields in the registry.
 
procedure, pass(thisn_vectors (this)
 Get the number of vectors in the registry.
 
procedure, pass(thisn_matrices (this)
 Get the number of matrices in the registry.
 
procedure, pass(thisn_real_scalars (this)
 Get the number of real scalars in the registry.
 
procedure, pass(thisn_integer_scalars (this)
 Get the number of integer scalars in the registry.
 
procedure, pass(thisn_scalars (this)
 Backwards compatible scalar count (real).
 
procedure, pass(thisn_aliases (this)
 Get the number of aliases in the registry.
 
procedure, pass(thisget_expansion_size (this)
 Get the expansion_size
 
procedure, pass(thisprint_contents (this, type)
 Print registry contents optionally filtered by type.
 

Private Member Functions

procedure, pass(this), private expand (this)
 Expand the array of entries so as to accommodate more entries.
 

Private Attributes

type(registry_entry_t), dimension(:), allocatable, private entries
 List of entries stored.
 
type(json_file), private aliases
 List of aliases to entries stored.
 
integer, private n_entries_ = 0
 Number of registered entries.
 
integer, private n_aliases_ = 0
 Number of aliases.
 
integer, private expansion_size_ = 5
 The size the entries array is increased by upon reallocation.
 

Detailed Description

Definition at line 52 of file registry.f90.

Member Function/Subroutine Documentation

◆ add_alias()

procedure, pass(this) registry::registry_t::add_alias ( class(registry_t), intent(inout this,
character(len=*), intent(in alias,
character(len=*), intent(in name 
)
Parameters
aliasThe alias.
nameThe name of the entry.

Definition at line 82 of file registry.f90.

◆ add_field()

procedure, pass(this) registry::registry_t::add_field ( class(registry_t), intent(inout this,
type(dofmap_t), intent(in), target  dof,
character(len=*), intent(in), target  name,
logical, intent(in), optional  ignore_existing 
)
Parameters
dofThe map of degrees of freedom.
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 72 of file registry.f90.

◆ add_integer_scalar()

procedure, pass(this) registry::registry_t::add_integer_scalar ( class(registry_t), intent(inout this,
integer, intent(in value,
character(len=*), intent(in), target  name,
logical, intent(in), optional  ignore_existing 
)
Parameters
valueThe scalar value.
nameThe name of the scalar.
ignore_existingIf true, skip if scalar already registered.

Definition at line 80 of file registry.f90.

◆ add_matrix()

procedure, pass(this) registry::registry_t::add_matrix ( class(registry_t), intent(inout this,
integer, intent(in nrows,
integer, intent(in ncols,
character(len=*), intent(in), target  name,
logical, intent(in), optional  ignore_existing 
)
Parameters
nThe size of the matrix.
nameThe name of the matrix.
ignore_existingIf true, will do nothing if the matrix is already in the registry. If false, will throw an error. Optional, defaults to false.

Definition at line 76 of file registry.f90.

◆ add_real_scalar()

procedure, pass(this) registry::registry_t::add_real_scalar ( class(registry_t), intent(inout this,
real(kind=rp), intent(in value,
character(len=*), intent(in), target  name,
logical, intent(in), optional  ignore_existing 
)
Parameters
valueThe scalar value.
nameThe name of the scalar.
ignore_existingIf true, skip if scalar already registered.

Definition at line 78 of file registry.f90.

◆ add_vector()

procedure, pass(this) registry::registry_t::add_vector ( class(registry_t), intent(inout this,
integer, intent(in n,
character(len=*), intent(in), target  name,
logical, intent(in), optional  ignore_existing 
)
Parameters
nThe size of the vector.
nameThe name of the vector.
ignore_existingIf true, will do nothing if the vector is already in the registry. If false, will throw an error. Optional, defaults to false.

Definition at line 74 of file registry.f90.

◆ entry_exists()

procedure, pass(this) registry::registry_t::entry_exists ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 109 of file registry.f90.

◆ expand()

procedure, pass(this), private registry::registry_t::expand ( class(registry_t), intent(inout this)
private

Definition at line 69 of file registry.f90.

◆ field_exists()

procedure, pass(this) registry::registry_t::field_exists ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 111 of file registry.f90.

◆ free()

procedure, pass(this) registry::registry_t::free ( class(registry_t), intent(inout this)

Definition at line 67 of file registry.f90.

◆ get_expansion_size()

procedure, pass(this) registry::registry_t::get_expansion_size ( class(registry_t), intent(in this)

Definition at line 143 of file registry.f90.

◆ get_field()

generic registry::registry_t::get_field ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 98 of file registry.f90.

Here is the call graph for this function:

◆ get_field_by_name()

procedure, pass(this) registry::registry_t::get_field_by_name ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 85 of file registry.f90.

◆ get_integer_scalar()

generic registry::registry_t::get_integer_scalar ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 106 of file registry.f90.

Here is the call graph for this function:

◆ get_integer_scalar_by_name()

procedure, pass(this) registry::registry_t::get_integer_scalar_by_name ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 94 of file registry.f90.

◆ get_matrix()

generic registry::registry_t::get_matrix ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 102 of file registry.f90.

Here is the call graph for this function:

◆ get_matrix_by_name()

procedure, pass(this) registry::registry_t::get_matrix_by_name ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 89 of file registry.f90.

◆ get_real_scalar()

generic registry::registry_t::get_real_scalar ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 104 of file registry.f90.

Here is the call graph for this function:

◆ get_real_scalar_by_name()

procedure, pass(this) registry::registry_t::get_real_scalar_by_name ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 91 of file registry.f90.

◆ get_size()

procedure, pass(this) registry::registry_t::get_size ( class(registry_t), intent(in this)

Definition at line 125 of file registry.f90.

◆ get_vector()

generic registry::registry_t::get_vector ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 100 of file registry.f90.

Here is the call graph for this function:

◆ get_vector_by_name()

procedure, pass(this) registry::registry_t::get_vector_by_name ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 87 of file registry.f90.

◆ init()

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

Definition at line 65 of file registry.f90.

◆ integer_scalar_exists()

procedure, pass(this) registry::registry_t::integer_scalar_exists ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 119 of file registry.f90.

◆ matrix_exists()

procedure, pass(this) registry::registry_t::matrix_exists ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 115 of file registry.f90.

◆ n_aliases()

procedure, pass(this) registry::registry_t::n_aliases ( class(registry_t), intent(in this)

Definition at line 141 of file registry.f90.

◆ n_entries()

procedure, pass(this) registry::registry_t::n_entries ( class(registry_t), intent(in this)

Definition at line 127 of file registry.f90.

◆ n_fields()

procedure, pass(this) registry::registry_t::n_fields ( class(registry_t), intent(in this)

Definition at line 129 of file registry.f90.

◆ n_integer_scalars()

procedure, pass(this) registry::registry_t::n_integer_scalars ( class(registry_t), intent(in this)

Definition at line 137 of file registry.f90.

◆ n_matrices()

procedure, pass(this) registry::registry_t::n_matrices ( class(registry_t), intent(in this)

Definition at line 133 of file registry.f90.

◆ n_real_scalars()

procedure, pass(this) registry::registry_t::n_real_scalars ( class(registry_t), intent(in this)

Definition at line 135 of file registry.f90.

◆ n_scalars()

procedure, pass(this) registry::registry_t::n_scalars ( class(registry_t), intent(in this)

Definition at line 139 of file registry.f90.

◆ n_vectors()

procedure, pass(this) registry::registry_t::n_vectors ( class(registry_t), intent(in this)

Definition at line 131 of file registry.f90.

◆ print_contents()

procedure, pass(this) registry::registry_t::print_contents ( class(registry_t), intent(in this,
character(len=*), intent(in), optional  type 
)

Definition at line 145 of file registry.f90.

◆ real_scalar_exists()

procedure, pass(this) registry::registry_t::real_scalar_exists ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 117 of file registry.f90.

◆ scalar_exists()

procedure, pass(this) registry::registry_t::scalar_exists ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 122 of file registry.f90.

◆ vector_exists()

procedure, pass(this) registry::registry_t::vector_exists ( class(registry_t), intent(inout), target  this,
character(len=*), intent(in name 
)

Definition at line 113 of file registry.f90.

Member Data Documentation

◆ aliases

type(json_file), private registry::registry_t::aliases
private

Definition at line 56 of file registry.f90.

◆ entries

type(registry_entry_t), dimension(:), allocatable, private registry::registry_t::entries
private

Definition at line 54 of file registry.f90.

◆ expansion_size_

integer, private registry::registry_t::expansion_size_ = 5
private

Definition at line 62 of file registry.f90.

◆ n_aliases_

integer, private registry::registry_t::n_aliases_ = 0
private

Definition at line 60 of file registry.f90.

◆ n_entries_

integer, private registry::registry_t::n_entries_ = 0
private

Definition at line 58 of file registry.f90.


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