Neko 1.99.2
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
field_array Module Reference

Data Types

type  field_array_t
 field_array_t, To be able to group fields together More...
 

Functions/Subroutines

subroutine field_array_init (this, size)
 Constructor. Just allocates the array.
 
pure integer function field_array_size (this)
 Get number of items in the list.
 
type(field_t) function, pointer field_array_get_by_index (this, i)
 Get an item pointer by array index.
 
type(field_t) function, pointer field_array_get_by_name (this, name)
 Get an item pointer by array index.
 
subroutine field_array_append (this, f)
 Append a field to the list, by copy assignment.
 
subroutine field_array_free (this)
 Destructor.
 
type(c_ptr) function field_array_x_d (this, i)
 Get device pointer for a given index.
 
real(kind=rp) function, dimension(:,:,:,:), pointer, contiguous field_array_x (this, i)
 
integer function field_array_item_size (this, i)
 Get the size of the dofmap for item i.
 
subroutine field_array_assign_to_field (this, i, f)
 Assign item at a given index to field, by copy assignment.
 
subroutine field_array_assign_to_field_wrapper (this, i, wrapper)
 Point item at a given index.
 
type(dofmap_t) function, pointer field_array_dof (this, i)
 Get the the dofmap for item i.
 
type(space_t) function, pointer field_array_space (this, i)
 Get the the space for item i.
 
type(mesh_t) function, pointer field_array_msh (this, i)
 Get the the mesh for item i.
 
logical function field_array_internal_dofmap (this, i)
 Whether the dofmap is internal for item i.
 
character(len=80) function field_array_name (this, i)
 Get the name for an item in the list.
 

Function/Subroutine Documentation

◆ field_array_append()

subroutine field_array::field_array_append ( class(field_array_t), intent(inout this,
class(field_t), intent(in f 
)
private
Parameters
fThe field to append.

Definition at line 113 of file field_array.f90.

◆ field_array_assign_to_field()

subroutine field_array::field_array_assign_to_field ( class(field_array_t), intent(inout this,
integer, intent(in i,
type(field_t), intent(in f 
)
private
Parameters
iThe index of the item.
ptrA field pointer to point the item to.

Definition at line 174 of file field_array.f90.

◆ field_array_assign_to_field_wrapper()

subroutine field_array::field_array_assign_to_field_wrapper ( class(field_array_t), intent(inout this,
integer, intent(in i,
type(field_wrapper_t), intent(in), target  wrapper 
)
private
Parameters
iThe index of the item.
ptrAn encapsulated field pointer to point the item to.

Definition at line 186 of file field_array.f90.

◆ field_array_dof()

type(dofmap_t) function, pointer field_array::field_array_dof ( class(field_array_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 196 of file field_array.f90.

◆ field_array_free()

subroutine field_array::field_array_free ( class(field_array_t), intent(inout this)
private

Definition at line 129 of file field_array.f90.

◆ field_array_get_by_index()

type(field_t) function, pointer field_array::field_array_get_by_index ( class(field_array_t), intent(inout this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 76 of file field_array.f90.

◆ field_array_get_by_name()

type(field_t) function, pointer field_array::field_array_get_by_name ( class(field_array_t), intent(inout this,
character(len=*), intent(in name 
)
private
Parameters
iThe index of the item.

Definition at line 85 of file field_array.f90.

◆ field_array_init()

subroutine field_array::field_array_init ( class(field_array_t), intent(inout this,
integer, intent(in size 
)
Parameters
sizeThe size of the list to preallocate

Definition at line 58 of file field_array.f90.

◆ field_array_internal_dofmap()

logical function field_array::field_array_internal_dofmap ( class(field_array_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 226 of file field_array.f90.

◆ field_array_item_size()

integer function field_array::field_array_item_size ( class(field_array_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 162 of file field_array.f90.

◆ field_array_msh()

type(mesh_t) function, pointer field_array::field_array_msh ( class(field_array_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 216 of file field_array.f90.

◆ field_array_name()

character(len=80) function field_array::field_array_name ( class(field_array_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 236 of file field_array.f90.

◆ field_array_size()

pure integer function field_array::field_array_size ( class(field_array_t), intent(in this)
private

Definition at line 68 of file field_array.f90.

◆ field_array_space()

type(space_t) function, pointer field_array::field_array_space ( class(field_array_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 206 of file field_array.f90.

◆ field_array_x()

real(kind=rp) function, dimension(:,:,:,:), pointer, contiguous field_array::field_array_x ( class(field_array_t), intent(in), target  this,
integer, intent(in i 
)
private

Definition at line 153 of file field_array.f90.

◆ field_array_x_d()

type(c_ptr) function field_array::field_array_x_d ( class(field_array_t), intent(in this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 145 of file field_array.f90.