init_variable Interface

interface
public module subroutine init_variable(self, comm_handler, ndim, staggered, init_vals)

Arguments

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

Instance of the type

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

Communicators

integer, intent(in) :: ndim

Dimension of variable

logical, intent(in) :: staggered

Indicates if variable is defined on staggered or canonical grid WILL BE REMOVED

real(kind=GP), intent(in), optional, dimension(ndim) :: init_vals

Values for initialisation if present, otherwise will be initialised with zeros

Description

Initialises variable