Neko 1.99.9
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(this) init (this, size, expansion_size)
 Constructor.
 
procedure, pass(this) free (this)
 Destructor.
 
procedure, pass(this) add_field (this, dof, name, ignore_existing)
 Add a field to the registry.
 
procedure, pass(this) add_vector (this, n, name, ignore_existing)
 Add a vector to the registry.
 
procedure, pass(this) add_matrix (this, nrows, ncols, name, ignore_existing)
 Add a matrix to the registry.
 
procedure, pass(this) add_tensor3 (this, n, m, k, name, ignore_existing)
 Add a tensor3 to the registry.
 
procedure, pass(this) add_tensor4 (this, n, m, k, l, name, ignore_existing)
 Add a tensor4 to the registry.
 
procedure, pass(this) add_real_scalar (this, value, name, ignore_existing)
 Add a real scalar to the registry.
 
procedure, pass(this) add_integer_scalar (this, value, name, ignore_existing)
 Add an integer scalar to the registry.
 
procedure, pass(this) add_alias (this, alias, name)
 Add an alias to a field in the registry.
 
procedure, pass(this) get_field (this, name)
 Get pointer to a stored field by name.
 
procedure, pass(this) get_vector (this, name)
 Get pointer to a stored vector by name.
 
procedure, pass(this) get_matrix (this, name)
 Get pointer to a stored matrix by name.
 
procedure, pass(this) get_tensor3 (this, name)
 Get pointer to a stored tensor3 by name.
 
procedure, pass(this) get_tensor4 (this, name)
 Get pointer to a stored tensor4 by name.
 
procedure, pass(this) get_real_scalar (this, name)
 Get pointer to a stored real scalar by name.
 
procedure, pass(this) get_integer_scalar (this, name)
 Get pointer to a stored integer scalar by name.
 
generic get_field_by_name (this, name)
 Get pointer to a stored field by name.
 
generic get_vector_by_name (this, name)
 Get pointer to a stored vector by name.
 
generic get_matrix_by_name (this, name)
 Get pointer to a stored matrix by name.
 
generic get_tensor3_by_name (this, name)
 Get pointer to a stored tensor3 by name.
 
generic get_tensor4_by_name (this, name)
 Get pointer to a stored tensor4 by name.
 
generic get_real_scalar_by_name (this, name)
 Get pointer to a stored real scalar by name.
 
generic get_integer_scalar_by_name (this, name)
 Get pointer to a stored integer scalar by name.
 
procedure, pass(this) entry_exists (this, name, type)
 Check if an entry with a given name is already in the registry.
 
procedure, pass(this) field_exists (this, name)
 Check if a field with a given name is already in the registry.
 
procedure, pass(this) vector_exists (this, name)
 Check if a vector with a given name is already in the registry.
 
procedure, pass(this) matrix_exists (this, name)
 Check if a matrix with a given name is already in the registry.
 
procedure, pass(this) tensor3_exists (this, name)
 Check if a tensor3 with a given name is already in the registry.
 
procedure, pass(this) tensor4_exists (this, name)
 Check if a tensor4 with a given name is already in the registry.
 
procedure, pass(this) real_scalar_exists (this, name)
 Check if a real scalar with a given name is already in the registry.
 
procedure, pass(this) integer_scalar_exists (this, name)
 Check if an integer scalar with a given name is already in the registry.
 
procedure, pass(this) scalar_exists (this, name)
 Backwards compatible scalar existence check (real).
 
procedure, pass(this) get_size (this)
 Get total allocated size of fields.
 
procedure, pass(this) n_entries (this, type)
 Get number of registered entries.
 
procedure, pass(this) n_fields (this)
 Get the number of fields in the registry.
 
procedure, pass(this) n_vectors (this)
 Get the number of vectors in the registry.
 
procedure, pass(this) n_matrices (this)
 Get the number of matrices in the registry.
 
procedure, pass(this) n_tensor3s (this)
 Get the number of tensor3s in the registry.
 
procedure, pass(this) n_tensor4s (this)
 Get the number of tensor4s in the registry.
 
procedure, pass(this) n_real_scalars (this)
 Get the number of real scalars in the registry.
 
procedure, pass(this) n_integer_scalars (this)
 Get the number of integer scalars in the registry.
 
procedure, pass(this) n_scalars (this)
 Backwards compatible scalar count (real).
 
procedure, pass(this) n_aliases (this)
 Get the number of aliases in the registry.
 
procedure, pass(this) get_expansion_size (this)
 Get the expansion_size
 
procedure, pass(this) print_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 49 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 83 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, default is false.

Definition at line 69 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 81 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, default is false.

Definition at line 73 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 79 of file registry.f90.

◆ add_tensor3()

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

Definition at line 75 of file registry.f90.

◆ add_tensor4()

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

Definition at line 77 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, default is false.

Definition at line 71 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,
character(len=*), intent(in), optional  type 
)
Parameters
nameThe name of the entry.
typeThe type of the entry. Optional, if not provided, will check all types.

Definition at line 110 of file registry.f90.

◆ expand()

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

Definition at line 66 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 112 of file registry.f90.

◆ free()

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

Definition at line 64 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 152 of file registry.f90.

◆ get_field()

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

Definition at line 86 of file registry.f90.

◆ get_field_by_name()

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

Definition at line 101 of file registry.f90.

Here is the call graph for this function:

◆ get_integer_scalar()

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

Definition at line 98 of file registry.f90.

◆ get_integer_scalar_by_name()

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

Definition at line 107 of file registry.f90.

Here is the call graph for this function:

◆ get_matrix()

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

Definition at line 90 of file registry.f90.

◆ get_matrix_by_name()

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

Definition at line 103 of file registry.f90.

Here is the call graph for this function:

◆ get_real_scalar()

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

Definition at line 96 of file registry.f90.

◆ get_real_scalar_by_name()

generic registry::registry_t::get_real_scalar_by_name ( 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_size()

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

Definition at line 130 of file registry.f90.

◆ get_tensor3()

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

Definition at line 92 of file registry.f90.

◆ get_tensor3_by_name()

generic registry::registry_t::get_tensor3_by_name ( 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_tensor4()

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

Definition at line 94 of file registry.f90.

◆ get_tensor4_by_name()

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

Definition at line 105 of file registry.f90.

Here is the call graph for this function:

◆ get_vector()

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

Definition at line 88 of file registry.f90.

◆ get_vector_by_name()

generic registry::registry_t::get_vector_by_name ( 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:

◆ 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 62 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 124 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 116 of file registry.f90.

◆ n_aliases()

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

Definition at line 150 of file registry.f90.

◆ n_entries()

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

Definition at line 132 of file registry.f90.

◆ n_fields()

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

Definition at line 134 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 146 of file registry.f90.

◆ n_matrices()

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

Definition at line 138 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 144 of file registry.f90.

◆ n_scalars()

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

Definition at line 148 of file registry.f90.

◆ n_tensor3s()

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

Definition at line 140 of file registry.f90.

◆ n_tensor4s()

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

Definition at line 142 of file registry.f90.

◆ n_vectors()

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

Definition at line 136 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 154 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 122 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 127 of file registry.f90.

◆ tensor3_exists()

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

Definition at line 118 of file registry.f90.

◆ tensor4_exists()

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

Definition at line 120 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 114 of file registry.f90.

Member Data Documentation

◆ aliases

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

Definition at line 53 of file registry.f90.

◆ entries

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

Definition at line 51 of file registry.f90.

◆ expansion_size_

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

Definition at line 59 of file registry.f90.

◆ n_aliases_

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

Definition at line 57 of file registry.f90.

◆ n_entries_

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

Definition at line 55 of file registry.f90.


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