Neko 0.9.99
A portable framework for high-order spectral element flow simulations
|
Defines a registry for storing and requesting temporary fields This can be used when you have a function that will be called often and you don't want to create temporary fields (work arrays) inside it on each call.
Data Types | |
interface | scratch_registry_t |
Functions/Subroutines | |
type(scratch_registry_t) function | init (dof, size, expansion_size) |
Constructor, optionally taking initial registry and expansion size as argument. | |
subroutine | scratch_registry_free (this) |
Destructor. | |
pure integer function | get_nfields (this) |
Get the number of fields stored in the registry. | |
pure integer function | get_nfields_inuse (this) |
pure integer function | get_size (this) |
Get the size of the fields array. | |
pure integer function | get_expansion_size (this) |
Get the expansion size. | |
subroutine | expand (this) |
subroutine | request_field (this, f, index) |
Get a field from the registry by assigning it to a pointer. | |
subroutine | relinquish_field_single (this, index) |
Relinquish the use of a field in the registry. | |
subroutine | relinquish_field_multiple (this, indices) |
logical function | get_inuse (this, index) |
Variables | |
type(scratch_registry_t), target, public | neko_scratch_registry |
Global scratch registry. | |
|
private |
Definition at line 179 of file scratch_registry.f90.
|
private |
Definition at line 172 of file scratch_registry.f90.
|
private |
[in,out] | index | The index of the field to check |
Definition at line 258 of file scratch_registry.f90.
|
private |
Definition at line 146 of file scratch_registry.f90.
|
private |
Definition at line 153 of file scratch_registry.f90.
|
private |
Definition at line 164 of file scratch_registry.f90.
|
private |
Definition at line 91 of file scratch_registry.f90.
|
private |
[in,out] | indices | The indices of the field to free |
Definition at line 247 of file scratch_registry.f90.
|
private |
[in,out] | index | The index of the field to free |
Definition at line 239 of file scratch_registry.f90.
|
private |
[in,out] | index | The index of the field in the inuse array |
Definition at line 202 of file scratch_registry.f90.
|
private |
Definition at line 124 of file scratch_registry.f90.
type(scratch_registry_t), target, public scratch_registry::neko_scratch_registry |
Definition at line 85 of file scratch_registry.f90.