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

Object for handling masks in Neko.

Data Types

type  mask_t
 Type for consistently handling masks in Neko. This type encapsulates the mask array and its associated device pointer. More...

Functions/Subroutines

subroutine mask_allocate (this, n_elements)
 Allocate the mask object.
subroutine mask_free (this)
 Free the mask object.
subroutine init_from_array (this, mask_array, n_elements)
 Initialize the mask from a 1-indexed host array.
subroutine init_from_array_device (this, mask_array_d, n_elements)
 Initialize the mask from a 0-indexed device array.
subroutine init_from_mask (this, other)
 Initialize the mask from another mask object.
subroutine invert_mask (this, other, total_elements)
 Invert the contents of another mask object.
pure integer function mask_size (this)
 Get the size of the mask.
pure logical function mask_is_set (this)
 Check if the mask is set.
integer function, dimension(:), pointer mask_get (this)
 Get the mask array.
integer function mask_get_i (this, index)
 Get the mask array.
type(c_ptr) function mask_get_d (this)
 Get the device pointer to the mask array.
subroutine mask_set (this, mask_array, n_elements)
 Set the mask from a 1-indexed host array.
subroutine mask_set_d (this, mask_array_d, n_elements)
 Set the mask from a 0-indexed device array.

Function/Subroutine Documentation

◆ init_from_array()

subroutine mask::init_from_array ( class(mask_t), intent(inout) this,
integer, dimension(n_elements), intent(in) mask_array,
integer, intent(in) n_elements )
private

Definition at line 132 of file mask.f90.

Here is the caller graph for this function:

◆ init_from_array_device()

subroutine mask::init_from_array_device ( class(mask_t), intent(inout) this,
type(c_ptr), intent(inout) mask_array_d,
integer, intent(in) n_elements )
private

Definition at line 150 of file mask.f90.

Here is the caller graph for this function:

◆ init_from_mask()

subroutine mask::init_from_mask ( class(mask_t), intent(inout) this,
class(mask_t), intent(inout) other )
private

Definition at line 169 of file mask.f90.

Here is the caller graph for this function:

◆ invert_mask()

subroutine mask::invert_mask ( class(mask_t), intent(inout) this,
class(mask_t), intent(in) other,
integer, intent(in) total_elements )
private

Definition at line 189 of file mask.f90.

◆ mask_allocate()

subroutine mask::mask_allocate ( class(mask_t), intent(inout) this,
integer, intent(in) n_elements )

Definition at line 98 of file mask.f90.

Here is the call graph for this function:

◆ mask_free()

subroutine mask::mask_free ( class(mask_t), intent(inout) this)
private

Definition at line 116 of file mask.f90.

Here is the call graph for this function:

◆ mask_get()

integer function, dimension(:), pointer mask::mask_get ( class(mask_t), intent(in), target this)
private

Definition at line 244 of file mask.f90.

Here is the caller graph for this function:

◆ mask_get_d()

type(c_ptr) function mask::mask_get_d ( class(mask_t), intent(in) this)
private

Definition at line 268 of file mask.f90.

◆ mask_get_i()

integer function mask::mask_get_i ( class(mask_t), intent(in), target this,
integer, intent(in) index )
private

Definition at line 254 of file mask.f90.

Here is the caller graph for this function:

◆ mask_is_set()

pure logical function mask::mask_is_set ( class(mask_t), intent(in) this)
private

Definition at line 236 of file mask.f90.

◆ mask_set()

subroutine mask::mask_set ( class(mask_t), intent(inout) this,
integer, dimension(n_elements), intent(in) mask_array,
integer, intent(in) n_elements )
private

Definition at line 278 of file mask.f90.

Here is the caller graph for this function:

◆ mask_set_d()

subroutine mask::mask_set_d ( class(mask_t), intent(inout) this,
type(c_ptr), intent(inout) mask_array_d,
integer, intent(in) n_elements )
private

Definition at line 296 of file mask.f90.

Here is the caller graph for this function:

◆ mask_size()

pure integer function mask::mask_size ( class(mask_t), intent(in) this)
private

Definition at line 228 of file mask.f90.