Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
scratch_registry.f90 File Reference

Go to the source code of this file.

Data Types

interface  scratch_registry::scratch_registry_t
 

Modules

module  scratch_registry
 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.
 

Functions/Subroutines

type(scratch_registry_t) function scratch_registry::init (dof, size, expansion_size)
 Constructor, optionally taking initial registry and expansion size as argument.
 
subroutine scratch_registry::scratch_registry_free (this)
 Destructor.
 
pure integer function scratch_registry::get_nfields (this)
 Get the number of fields stored in the registry.
 
pure integer function scratch_registry::get_nfields_inuse (this)
 
pure integer function scratch_registry::get_size (this)
 Get the size of the fields array.
 
pure integer function scratch_registry::get_expansion_size (this)
 Get the expansion size.
 
subroutine scratch_registry::expand (this)
 
subroutine scratch_registry::request_field (this, f, index)
 Get a field from the registry by assigning it to a pointer.
 
subroutine scratch_registry::relinquish_field_single (this, index)
 Relinquish the use of a field in the registry.
 
subroutine scratch_registry::relinquish_field_multiple (this, indices)
 
logical function scratch_registry::get_inuse (this, index)
 

Variables

type(scratch_registry_t), target, public scratch_registry::neko_scratch_registry
 Global scratch registry.