init_snapshot Subroutine

public subroutine init_snapshot(self, comm_handler, mesh_cano, mesh_stag, dirpath, nvars, name_vars)

Initialises snapshots, creates dirpath

Type Bound

snapshot_t

Arguments

Type IntentOptional Attributes Name
class(snapshot_t), intent(inout) :: self

Instance of the type

type(comm_handler_t), intent(in) :: comm_handler

MPI communicator

type(mesh_cart_t), intent(in) :: mesh_cano

Mesh (canonical)

type(mesh_cart_t), intent(in) :: mesh_stag

Mesh (staggered)

character(len=*), intent(in) :: dirpath

Directory, where snapshot files are written

integer, intent(in) :: nvars

Number of variables to be written

type(char_arr_t), intent(in), dimension(nvars) :: name_vars

Names of variables


Contents