project_scalar Subroutine

public subroutine project_scalar(self, comm_handler, mesh, map, penalisation, ind, u, is_stag, mode, accumulate)

Project input onto scalar diagnostic dimension nrho

Type Bound

diagnostics_scalar_t

Arguments

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

Instance of class

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

MPI communication handler

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

Mesh within poloidal plane

type(parallel_map_t), intent(in) :: map

Parallel map

type(penalisation_t), intent(in) :: penalisation

Penalisation

integer, intent(in) :: ind

Work index in diagnostics array

real(kind=GP), intent(in), dimension(:) :: u

Input array

logical, intent(in) :: is_stag

Logical is true if located on the staggered mesh

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

Projection mode, select from : 'VOLAVG' - volume average 'VOLINT' - volume integral

logical, intent(in), optional :: accumulate

Logical is true if the result is added to the variable


Contents