Neko
0.8.1
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. More...
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. More... | |
subroutine | scratch_registry_free (this) |
Destructor. More... | |
pure integer function | get_nfields (this) |
Get the number of fields stored in the registry. More... | |
pure integer function | get_nfields_inuse (this) |
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... | |
subroutine | expand (this) |
subroutine | request_field (this, f, index) |
Get a field from the registry by assigning it to a pointer. More... | |
subroutine | relinquish_field_single (this, index) |
Relinquish the use of a field in the registry. More... | |
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. More... | |
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.
|
private |
Definition at line 175 of file scratch_registry.f90.
|
private |
Get the expansion size.
Definition at line 168 of file scratch_registry.f90.
|
private |
[in,out] | index | The index of the field to check |
Definition at line 254 of file scratch_registry.f90.
|
private |
Get the number of fields stored in the registry.
Definition at line 142 of file scratch_registry.f90.
|
private |
Definition at line 149 of file scratch_registry.f90.
|
private |
Get the size of the fields array.
Definition at line 160 of file scratch_registry.f90.
|
private |
Constructor, optionally taking initial registry and expansion size as argument.
Definition at line 91 of file scratch_registry.f90.
|
private |
[in,out] | indices | The indices of the field to free |
Definition at line 243 of file scratch_registry.f90.
|
private |
Relinquish the use of a field in the registry.
[in,out] | index | The index of the field to free |
Definition at line 235 of file scratch_registry.f90.
|
private |
Get a field from the registry by assigning it to a pointer.
[in,out] | index | The index of the field in the inuse array |
Definition at line 198 of file scratch_registry.f90.
|
private |
Destructor.
Definition at line 122 of file scratch_registry.f90.
type(scratch_registry_t), target, public scratch_registry::neko_scratch_registry |
Global scratch registry.
Definition at line 85 of file scratch_registry.f90.