mus_particle_logging_type_module Module

Routines containing data types for logging particle data.



Variables

Type Visibility Attributes Name Initial
type(mus_particle_logging_type), public, save :: pgDebugLog
type(mus_particle_debugtracking_type), public, save :: debugTracker

Derived Types

type, public ::  mus_particle_logging_type

Components

Type Visibility Attributes Name Initial
integer, public :: lu

log unit to write to particle debug log file to

character(len=32), public :: lfile

file name of particle debug log

type, public ::  mus_particle_debugtracking_type

Type containing information on fluid elements to track using calls to dumpdata() in mus_particle_tracking_module Can track lines and planes. For lines, only length1 and dir1 need to be prescribed whereas for planes we also need length2 and dir2

Components

Type Visibility Attributes Name Initial
character(len=labelLen), public :: lfile

file name of particle debug log time step will be appended to this name

character(len=labelLen), public :: trackerType

Type of tracker Can be 'line' or 'plane'

type(dyn_longarray_type), public :: elemList

list of positions of elements (in total list) to track

real(kind=rk), public :: xstart(3)

starting coordinate of region to track

real(kind=rk), public :: length1

length of line to track in first direction

integer, public :: dir1(3)

direction of line to track in second direction e.g. (/ 1, 0, 0 /) is the x-direction

real(kind=rk), public :: length2

length of line to track in second direction

integer, public :: dir2(3)

direction of line to track in second direction e.g. (/ 1, 0, 0 /) is the x-direction

logical, public :: active = .FALSE.

Logical to indicate whether tracker is active


Subroutines

public subroutine printDebugTrackerData(debugTracker, logUnit)

Arguments

Type IntentOptional Attributes Name
type(mus_particle_debugtracking_type) :: debugTracker
integer :: logUnit

public subroutine init_particle_logger(logger, myRank)

Arguments

Type IntentOptional Attributes Name
type(mus_particle_logging_type), intent(inout) :: logger

logging type to initialize

integer, intent(in) :: myRank

rank of this process, used to construct the log file name