version 0.6.0
Loading...
Searching...
No Matches
type_stencil Module Reference

Enumeration modules associated to implicit discretization of PDE Declaration of types associated to different discretization stencils.

Data Types

type  t_base_stencil
 Stencil. More...
 
type  t_cell_stencil
 Stencil for cell-based schemes. More...
 
type  t_face_stencil
 Stencil for face-based schemes. More...
 
type  t_serialized_stencil
 Container for the serialized stencil. More...
 
type  t_stencil_type
 Stencil type. More...
 

Variables

Predefined stencil types.
type(t_stencil_type), parameter, public stencil_1_star = t_stencil_type(1, 0, 0)
 
type(t_stencil_type), parameter, public stencil_2_star = t_stencil_type(2, 0, 0)
 
type(t_stencil_type), parameter, public stencil_1_square = t_stencil_type(1, 1, 1)
 
type(t_stencil_type), parameter, public stencil_2_square = t_stencil_type(2, 2, 2)
 

Relative indices and coordinates associated to the offset shifted to

correspond to the real coordinates on the given grid.

For instance, o_uv(l)i corresponds the i coordinate of the _v grid.

integer, parameter, public cell_location = 0
 
integer, parameter, public face_location_u = 1
 
integer, parameter, public face_location_v = 2
 
integer, parameter, public face_location_w = 3
 
integer, parameter, public stencil_unassigned = -1
 Dummy value for unassigned stencils points.
 
subroutine, public set_cell_stencil_indices (stencil, stencil_type)
 Set the stencil to given type, adapted to cell-based schemes.
 
subroutine, public set_face_stencil_indices (stencil, stencil_type)
 Set the stencil to given type, adapted to face-based schemes.
 
character(len=8) function, public get_stencil_name (stencil)
 Return a name for predefined stencils.
 
pure type(t_stencil_type) function, public get_largest_stencil_type (stencil_type_1, stencil_type_2)
 Return a Stencil Type that can handle both stencils.
 
type(t_stencil_type) function, public exchange_stencil_type (stencil_type_local)
 Set the same Stencil Type on all processes.