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

Data Types

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

Functions/Subroutines

subroutine field_list_init (this, size)
 Constructor. Just allocates the array.
 
pure integer function field_list_size (this)
 Get number of items in the list.
 
type(field_t) function, pointer field_list_get_by_index (this, i)
 Get an item pointer by array index.
 
type(field_t) function, pointer field_list_get_by_name (this, name)
 Get an item pointer by array index.
 
subroutine field_list_append (this, f)
 Append a field to the list.
 
subroutine field_list_free (this)
 Destructor.
 
type(c_ptr) function field_list_x_d (this, i)
 Get device pointer for a given index.
 
real(kind=rp) function, dimension(:,:,:,:), pointer, contiguous field_list_x (this, i)
 
integer function field_list_item_size (this, i)
 Get the size of the dofmap for item i.
 
subroutine field_list_assign_to_ptr (this, i, ptr)
 Point item at a given index.
 
subroutine field_list_assign_to_field_ptr (this, i, ptr)
 Point item at a given index.
 
subroutine field_list_assign_to_field (this, i, fld)
 Point item at a given index.
 
subroutine field_list_assign_to_field_list (this, other)
 Point item at a given index.
 
type(dofmap_t) function, pointer field_list_dof (this, i)
 Get the the dofmap for item i.
 
type(space_t) function, pointer field_list_space (this, i)
 Get the the space for item i.
 
type(mesh_t) function, pointer field_list_msh (this, i)
 Get the the mesh for item i.
 
logical function field_list_internal_dofmap (this, i)
 Whether the dofmap is internal for item i.
 
character(len=80) function field_list_name (this, i)
 Get the name for an item in the list.
 
subroutine field_list_copy_from (this, memdir, sync)
 Copy all fields to or from device.
 

Function/Subroutine Documentation

◆ field_list_append()

subroutine field_list::field_list_append ( class(field_list_t), intent(inout this,
class(field_t), intent(in), target  f 
)
private
Parameters
fThe field to append.

Definition at line 124 of file field_list.f90.

◆ field_list_assign_to_field()

subroutine field_list::field_list_assign_to_field ( class(field_list_t), intent(inout this,
integer, intent(in i,
type(field_t), intent(in), target  fld 
)
private
Parameters
iThe index of the item.
fieldA field to point the item to.

Definition at line 214 of file field_list.f90.

◆ field_list_assign_to_field_list()

subroutine field_list::field_list_assign_to_field_list ( class(field_list_t), intent(inout this,
type(field_list_t), intent(in other 
)
private
Parameters
iThe index of the item.
fieldA field to point the item to.

Definition at line 225 of file field_list.f90.

◆ field_list_assign_to_field_ptr()

subroutine field_list::field_list_assign_to_field_ptr ( class(field_list_t), intent(inout this,
integer, intent(in i,
type(field_ptr_t), intent(in), target  ptr 
)
private
Parameters
iThe index of the item.
ptrAn encapsulated field pointer to point the item to.

Definition at line 203 of file field_list.f90.

◆ field_list_assign_to_ptr()

subroutine field_list::field_list_assign_to_ptr ( class(field_list_t), intent(inout this,
integer, intent(in i,
type(field_t), intent(in), pointer  ptr 
)
private
Parameters
iThe index of the item.
ptrA field pointer to point the item to.

Definition at line 191 of file field_list.f90.

◆ field_list_copy_from()

subroutine field_list::field_list_copy_from ( class(field_list_t), intent(inout this,
integer, intent(in memdir,
logical, intent(in sync 
)
private

Call the memory copy for each field in the list. If sync is true, synchronize on the last copy.

Parameters
memdirThe direction of the copy.
syncWhether to synchronize after the copy.

Definition at line 292 of file field_list.f90.

◆ field_list_dof()

type(dofmap_t) function, pointer field_list::field_list_dof ( class(field_list_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 239 of file field_list.f90.

◆ field_list_free()

subroutine field_list::field_list_free ( class(field_list_t), intent(inout this)
private

Definition at line 146 of file field_list.f90.

◆ field_list_get_by_index()

type(field_t) function, pointer field_list::field_list_get_by_index ( class(field_list_t), intent(inout this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 87 of file field_list.f90.

◆ field_list_get_by_name()

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

Definition at line 96 of file field_list.f90.

◆ field_list_init()

subroutine field_list::field_list_init ( class(field_list_t), intent(inout this,
integer, intent(in size 
)
Parameters
sizeThe size of the list to preallocate

Definition at line 63 of file field_list.f90.

◆ field_list_internal_dofmap()

logical function field_list::field_list_internal_dofmap ( class(field_list_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 269 of file field_list.f90.

◆ field_list_item_size()

integer function field_list::field_list_item_size ( class(field_list_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 179 of file field_list.f90.

◆ field_list_msh()

type(mesh_t) function, pointer field_list::field_list_msh ( class(field_list_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 259 of file field_list.f90.

◆ field_list_name()

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

Definition at line 279 of file field_list.f90.

◆ field_list_size()

pure integer function field_list::field_list_size ( class(field_list_t), intent(in this)
private

Definition at line 73 of file field_list.f90.

◆ field_list_space()

type(space_t) function, pointer field_list::field_list_space ( class(field_list_t), intent(in), target  this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 249 of file field_list.f90.

◆ field_list_x()

real(kind=rp) function, dimension(:,:,:,:), pointer, contiguous field_list::field_list_x ( class(field_list_t), intent(in), target  this,
integer, intent(in i 
)
private

Definition at line 170 of file field_list.f90.

◆ field_list_x_d()

type(c_ptr) function field_list::field_list_x_d ( class(field_list_t), intent(in this,
integer, intent(in i 
)
private
Parameters
iThe index of the item.

Definition at line 162 of file field_list.f90.