snaps_average Subroutine

public subroutine snaps_average(comm_handler, mesh, dirpath, nsnaps_start, nsnaps_end, var_name, res)

Averages an variable in the snapshots from nsnaps_start until nsnaps_end

Arguments

Type IntentOptional Attributes Name
type(comm_handler_t), intent(in) :: comm_handler

MPI communication handler

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

Mesh within poloidal plane Canonical or staggered. Should agree with var_name and res

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

Directory, where snapshot files are read

integer, intent(in) :: nsnaps_start

Snapshot number where the average period starts

integer, intent(in) :: nsnaps_end

Snapshot number where the average period ends

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

Name of the variable to be averaged, must be contained in dirpath

real(kind=GP), intent(inout), dimension(mesh%get_n_points()) :: res

Stores results of average


Contents