constants Module

This module contains mathematical constants and strings that contain the various directories used by the program. Math constants: - PI - 2 PI - wp (working precision of the whole program). Default is double precision (64bit floats) Directories: - homedir. Root directory of this code - fileplace. data folder directory - resdir. holds the path to the directory that holds the parameter and other associated input files



Variables

Type Visibility Attributes Name Initial
real(kind=wp), public, parameter :: CHANCE = 0.1_wp

Proportion of packet that survive roulette

real(kind=wp), public, parameter :: PI = 4._wp*atan(1._wp)

real(kind=wp), public, parameter :: THRESHOLD = 0.01_wp

Weight threshold for roulette

real(kind=wp), public, parameter :: TWOPI = 2._wp*PI

integer, public, parameter :: dp = real64

double precision variable.

character(len=255), public :: fileplace

place where output files are saved

character(len=255), public :: homedir

root directory

character(len=255), public :: resdir

directory to input files

integer, public, parameter :: sp = real32

single precision variable.

integer, public, parameter :: wp = real64

current working precision