field_t Derived Type

type, public :: field_t

Memory block type holding both a data field and a pointer to the next block. The field_t type also holds a integer refcount that counts the number of references to this field. User code is currently responsible for incrementing the reference count.


Inherited by

type~~field_t~~InheritedByGraph type~field_t field_t type~field_t->type~field_t next type~allocator_t allocator_t type~allocator_t->type~field_t first type~cuda_field_t cuda_field_t type~cuda_field_t->type~field_t type~flist_t flist_t type~flist_t->type~field_t ptr type~solver_t solver_t type~solver_t->type~field_t u, v, w type~solver_t->type~allocator_t host_allocator type~base_backend_t base_backend_t type~solver_t->type~base_backend_t backend type~time_intg_t time_intg_t type~solver_t->type~time_intg_t time_integrator type~vector_calculus_t vector_calculus_t type~solver_t->type~vector_calculus_t vector_calculus type~base_backend_t->type~allocator_t allocator type~base_case_t base_case_t type~base_case_t->type~solver_t solver type~cuda_allocator_t cuda_allocator_t type~cuda_allocator_t->type~allocator_t type~time_intg_t->type~allocator_t allocator type~time_intg_t->type~flist_t olds, curr, deriv type~time_intg_t->type~base_backend_t backend type~case_channel_t case_channel_t type~case_channel_t->type~base_case_t type~case_generic_t case_generic_t type~case_generic_t->type~base_case_t type~case_tgv_t case_tgv_t type~case_tgv_t->type~base_case_t type~cuda_backend_t cuda_backend_t type~cuda_backend_t->type~base_backend_t type~omp_backend_t omp_backend_t type~omp_backend_t->type~base_backend_t type~vector_calculus_t->type~base_backend_t backend

Components

Type Visibility Attributes Name Initial
class(field_t), public, pointer :: next
real(kind=dp), public, pointer, contiguous :: data(:,:,:)
integer, public :: dir
integer, public :: data_loc
integer, public :: refcount = 0
integer, public :: id

An integer identifying the memory block.


Constructor

public interface field_t

  • public function field_init(ngrid, next, id) result(f)

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: ngrid
    type(field_t), intent(in), pointer :: next
    integer, intent(in) :: id

    Return Value type(field_t)


Type-Bound Procedures

procedure, public :: fill

  • public subroutine fill(self, c)

    Arguments

    Type IntentOptional Attributes Name
    class(field_t) :: self
    real(kind=dp), intent(in) :: c

procedure, public :: get_shape

  • public function get_shape(self) result(dims)

    Arguments

    Type IntentOptional Attributes Name
    class(field_t) :: self

    Return Value integer, (3)

procedure, public :: set_shape

  • public subroutine set_shape(self, dims)

    Arguments

    Type IntentOptional Attributes Name
    class(field_t) :: self
    integer, intent(in) :: dims(3)

procedure, public :: set_data_loc

  • public subroutine set_data_loc(self, data_loc)

    Arguments

    Type IntentOptional Attributes Name
    class(field_t) :: self
    integer, intent(in) :: data_loc