|
Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
|
#include <parameters.h>
Public Types | |
| enum | ASTERIX_COMPRESSION_METHODS { NONE , ZFP , OCTREE , MLP , MLP_MULTI } |
Static Public Member Functions | |
| static bool | addParameters () |
| Add the global parameters. | |
| static void | getParameters () |
| Get the global parameters. | |
Static Public Attributes | |
| static Real | xmin = NAN |
| static Real | xmax = NAN |
| static Real | ymin = NAN |
| static Real | ymax = NAN |
| static Real | zmin = NAN |
| static Real | zmax = NAN |
| static Real | dx_ini = NAN |
| static Real | dy_ini = NAN |
| static Real | dz_ini = NAN |
| static uint | xcells_ini = numeric_limits<uint>::max() |
| static uint | ycells_ini = numeric_limits<uint>::max() |
| static uint | zcells_ini = numeric_limits<uint>::max() |
| static Real | t = 0 |
| static Real | t_min = 0 |
| static Real | t_max = LARGE_REAL |
| static Real | dt = NAN |
| static Real | dt_ceil = -1.0 |
| static Real | vlasovSolverMaxCFL = NAN |
| static Real | vlasovSolverMinCFL = NAN |
| static bool | vlasovSolverGhostTranslate = false |
| static uint | vlasovSolverGhostTranslateExtent = 0 |
| static Real | fieldSolverMinCFL = NAN |
| static Real | fieldSolverMaxCFL = NAN |
| static uint | fieldSolverSubcycles = 1 |
| static uint | tstep_min = 0 |
| static uint | tstep_max = 0 |
| static uint | tstep = 0 |
| static bool | meshRepartitioned = true |
| static std::vector< CellID > | localCells |
| static bool | adaptGPUWID = true |
| static uint | GPUallocations = 128 |
| static uint | diagnosticInterval = numeric_limits<uint>::max() |
| static std::vector< std::string > | systemWriteName |
| static std::vector< std::string > | systemWritePath |
| static std::vector< Real > | systemWriteTimeInterval |
| static std::vector< int > | systemWriteDistributionWriteStride |
| static bool | systemWriteDistributionCompressed |
| static bool | systemWriteRestartCompressed |
| static bool | systemWriteRecoveryCompressed |
| static std::vector< int > | systemWriteDistributionWriteXlineStride |
| static std::vector< int > | systemWriteDistributionWriteYlineStride |
| static std::vector< int > | systemWriteDistributionWriteZlineStride |
| static std::vector< Real > | systemWriteDistributionWriteShellRadius |
| static std::vector< int > | systemWriteDistributionWriteShellStride |
| static std::vector< bool > | systemWriteFsGrid |
| static bool | systemWriteAllDROs |
| static bool | diagnosticWriteAllDROs |
| static std::vector< int > | systemWrites |
| static std::vector< std::pair< std::string, std::string > > | systemWriteHints |
| static std::vector< std::pair< std::string, std::string > > | restartReadHints |
| static std::vector< std::pair< std::string, std::string > > | restartWriteHints |
| static bool | writeInitialState = true |
| static bool | writeFullBGB = false |
| static Real | saveRestartWalltimeInterval = -1.0 |
| static uint | saveRecoverTstepInterval = 0 |
| static uint | exitAfterRestarts = numeric_limits<uint>::max() |
| static uint | recoverMaxFiles = 0 |
| static uint64_t | vlsvBufferSize = 0 |
| static int | restartStripeFactor = 0 |
| static int | systemStripeFactor = 0 |
| static std::string | restartWritePath = string("") |
| static std::string | recoverWritePath = string("") |
| static bool | recalculateStencils = true |
| static bool | propagateField = true |
| static bool | propagateVlasovAcceleration = true |
| static bool | propagateVlasovTranslation = true |
| static Real | maxWaveVelocity = 0.0 |
| static uint | maxFieldSolverSubcycles = 0.0 |
| static Real | resistivity = NAN |
| static uint | ohmHallTerm = 0 |
| static uint | ohmGradPeTerm = 0 |
| static Real | electronTemperature = 0.0 |
| static Real | electronDensity = 0.0 |
| static Real | electronPTindex = 1.0 |
| static bool | fieldSolverDiffusiveEterms = true |
| static bool | fieldSolverFiniteDifferencingAtBoundaries = false |
| static Real | maxSlAccelerationRotation = 10.0 |
| static int | maxSlAccelerationSubcycles = 0.0 |
| static bool | vlasovAccelerateMaxwellianBoundaries = false |
| static Real | hallMinimumRhom = physicalconstants::MASS_PROTON |
| static Real | hallMinimumRhoq = physicalconstants::CHARGE |
| static std::string | loadBalanceAlgorithm = string("") |
| static std::map< std::string, std::string > | loadBalanceOptions |
| static uint | rebalanceInterval = numeric_limits<uint>::max() |
| static bool | prepareForRebalance = false |
| static std::vector< std::string > | outputVariableList |
| static std::vector< std::string > | diagnosticVariableList |
| static std::string | restartFileName = string("") |
| static bool | isRestart = false |
| static int | writeAsFloat = false |
| static int | writeRestartAsFloat = false |
| static bool | dynamicTimestep = true |
| static std::string | projectName = string("") |
| static bool | bailout_write_restart = false |
| static Real | bailout_min_dt = NAN |
| static Real | bailout_max_memory = 1073741824. |
| static uint | bailout_velocity_space_wall_margin = 0 |
| static int | amrMaxSpatialRefLevel = 0 |
| static int | amrMaxAllowedSpatialRefLevel = -1 |
| static bool | adaptRefinement = false |
| static bool | refineOnRestart = false |
| static bool | forceRefinement = false |
| static bool | shouldFilter = false |
| static bool | useAlpha1 = true |
| static Real | alpha1RefineThreshold = 0.5 |
| static Real | alpha1CoarsenThreshold = -1.0 |
| static bool | useAlpha2 = true |
| static Real | alpha2RefineThreshold = 0.5 |
| static Real | alpha2CoarsenThreshold = -1.0 |
| static bool | useVorticity = false |
| static Real | vorticityRefineThreshold = 0.5 |
| static Real | vorticityCoarsenThreshold = -1.0 |
| static bool | useAnisotropy = false |
| static Real | anisotropyRefineThreshold = 0.5 |
| static Real | anisotropyCoarsenThreshold = -1.0 |
| static int | anisotropyMaxReflevel = 2 |
| static uint | refineCadence = 5 |
| static Real | refineAfter = 0.0 |
| static Real | refineRadius = LARGE_REAL |
| static Real | alphaDRhoWeight = 1.0 |
| static Real | alphaDUWeight = 1.0 |
| static Real | alphaDPSqWeight = 1.0 |
| static Real | alphaDBSqWeight = 1.0 |
| static Real | alphaDBWeight = 1.0 |
| static int | refineBoxNumber = 0 |
| static std::vector< Real > | refinementMinX |
| static std::vector< Real > | refinementMinY |
| static std::vector< Real > | refinementMinZ |
| static std::vector< Real > | refinementMaxX |
| static std::vector< Real > | refinementMaxY |
| static std::vector< Real > | refinementMaxZ |
| static int | maxFilteringPasses = 0 |
| static int | amrBoxNumber = 0 |
| static std::vector< uint > | amrBoxHalfWidthX |
| static std::vector< uint > | amrBoxHalfWidthY |
| static std::vector< uint > | amrBoxHalfWidthZ |
| static std::vector< Realf > | amrBoxCenterX |
| static std::vector< Realf > | amrBoxCenterY |
| static std::vector< Realf > | amrBoxCenterZ |
| static std::vector< int > | amrBoxMaxLevel |
| static bool | amrTransShortPencils = false |
| static std::vector< std::string > | blurPassString |
| static std::vector< int > | numPasses |
| static bool | artificialPADiff |
| static Realf | PADcoefficient |
| static Realf | PADCFL |
| static int | PADvbins |
| static int | PADmubins |
| static std::string | PADnu0 = string("") |
| static Realf | PADfudge |
| static std::array< fsgrid::Task_t, 3 > | manualFsGridDecomposition = {0,0,0} |
| static std::array< fsgrid::Task_t, 3 > | overrideReadFsGridDecomposition = {0,0,0} |
| static std::string | mlpLayer |
| static std::vector< std::size_t > | mlp_arch |
| static std::size_t | mlp_fourier_order |
| static std::size_t | mlp_max_epochs |
| static Real | compression_interval |
| static Real | mlp_tollerance |
| static std::size_t | max_vdfs_per_nn |
| static Real | octree_tolerance |
| static bool | doCompress =false |
| static std::string | method_str |
| static ASTERIX_COMPRESSION_METHODS | vdf_compression_method |
| static bool | computeCurvature |
Definition at line 37 of file parameters.h.
| Enumerator | |
|---|---|
| NONE | |
| ZFP | |
| OCTREE | |
| MLP | |
| MLP_MULTI | |
Definition at line 249 of file parameters.h.
|
static |
Add the global parameters.
This function adds all the parameters that are loaded at a global level. More are being loaded e.g. in the projects and in the system boundary conditions.
Note that due to the large number of parameters added here, no code is added to check for consistency when they are read later. Please make sure when coding new parameters here that the options in getParameters match the ones added here.
Definition at line 244 of file parameters.cpp.

|
static |
Get the global parameters.
This function gets all the parameters loaded at a global level. More are being loaded e.g. in the projects and in the system boundary conditions.
Note that due to the large number of parameters read here, no code is added to check for consistency with the loaded options, or the code here would become much less readable. Please make sure when coding new parameters here that the options in addParameters match the ones read here.
| firstPass | determines whether to only parse out particle populations (first pass), to parse all other parameters. |
Definition at line 608 of file parameters.cpp.


|
static |
If true, GPU runs with WID=8 use halved velocity block counts.
Definition at line 78 of file parameters.h.
|
static |
Definition at line 192 of file parameters.h.
|
static |
Definition at line 198 of file parameters.h.
|
static |
Definition at line 197 of file parameters.h.
|
static |
Definition at line 201 of file parameters.h.
|
static |
Definition at line 200 of file parameters.h.
|
static |
Definition at line 216 of file parameters.h.
|
static |
Definition at line 217 of file parameters.h.
|
static |
Definition at line 215 of file parameters.h.
|
static |
Definition at line 213 of file parameters.h.
|
static |
Definition at line 214 of file parameters.h.
|
static |
Definition at line 230 of file parameters.h.
|
static |
Definition at line 231 of file parameters.h.
|
static |
Definition at line 232 of file parameters.h.
|
static |
Definition at line 227 of file parameters.h.
|
static |
Definition at line 228 of file parameters.h.
|
static |
Definition at line 229 of file parameters.h.
|
static |
Definition at line 233 of file parameters.h.
|
static |
Definition at line 226 of file parameters.h.
|
static |
Maximum currently allowed refinement level for restart or dynamic refinement.
Definition at line 191 of file parameters.h.
|
static |
Absolute maximum refinement level (conditions the fsgrid resolution), cannot be exceeded after initial setup of the grids.
Definition at line 190 of file parameters.h.
|
static |
Use short or long pencils in AMR translation.
Definition at line 234 of file parameters.h.
|
static |
Definition at line 208 of file parameters.h.
|
static |
Definition at line 209 of file parameters.h.
|
static |
Definition at line 207 of file parameters.h.
|
static |
Definition at line 237 of file parameters.h.
|
static |
Maximum amount of memory used per node (in GiB) over which bailout occurs.
Definition at line 187 of file parameters.h.
Minimum time step below which bailout occurs (s).
Definition at line 186 of file parameters.h.
|
static |
Safety margin in number of blocks off the v-space wall beyond which bailout occurs.
Definition at line 188 of file parameters.h.
|
static |
If true, write a restart file on bailout. Gets reset when sending a STOP (true) or a KILL (false).
Definition at line 184 of file parameters.h.
|
static |
Definition at line 235 of file parameters.h.
|
static |
Definition at line 260 of file parameters.h.
|
static |
Definition at line 268 of file parameters.h.
|
static |
Definition at line 81 of file parameters.h.
|
static |
List of data reduction operators (DROs) to add to the diagnostic runtime output.
Definition at line 173 of file parameters.h.
|
static |
Write all diagnostic DROs or not.
Definition at line 107 of file parameters.h.
|
static |
Definition at line 264 of file parameters.h.
The value of the timestep to use in propagation. If CflLimit defined then it is dynamically updated during simulation
Definition at line 55 of file parameters.h.
|
static |
The maximum value of the timestep to use in propagation.
Definition at line 57 of file parameters.h.
Initial size of spatial cell in x-direction.
Definition at line 44 of file parameters.h.
Initial size of spatial cell in y-direction.
Definition at line 45 of file parameters.h.
|
static |
If true, timestep is set based on CFL limit
Definition at line 180 of file parameters.h.
Initial size of spatial cell in z-direction.
Definition at line 46 of file parameters.h.
|
static |
Upstream electron density to be used for the electron pressure gradient term (m^-3).
Definition at line 149 of file parameters.h.
|
static |
Definition at line 150 of file parameters.h.
|
static |
Upstream electron temperature to be used for the electron pressure gradient term (K).
Definition at line 146 of file parameters.h.
|
static |
Exit after this many restarts
Definition at line 121 of file parameters.h.
|
static |
Polytropic index for electron pressure gradient term. 0 is isobaric, 1 is isothermal, 1.667 is adiabatic electrons
Enable resistive terms in the computation of E
Definition at line 153 of file parameters.h.
|
static |
Enable finite differencing at sysboundaries
Definition at line 154 of file parameters.h.
The maximum CFL limit for propagation of fields. Used to set timestep if useCFLlimit is true.
Definition at line 67 of file parameters.h.
The minimum CFL limit for propagation of fields. Used to set timestep if useCFLlimit is true.
Definition at line 65 of file parameters.h.
|
static |
The number of field solver subcycles to compute.
Definition at line 69 of file parameters.h.
|
static |
Definition at line 194 of file parameters.h.
|
static |
How many parallel GPU vlasov allocations to make?
Definition at line 79 of file parameters.h.
|
static |
Minimum mass density value used in the field solver.
Definition at line 160 of file parameters.h.
|
static |
Minimum charge density value used for the Hall and electron pressure gradient terms in the Lorentz force and in the field solver.
Definition at line 161 of file parameters.h.
|
static |
true if this is a restart, false otherwise
Definition at line 176 of file parameters.h.
|
static |
Algorithm to be used for load balance.
Definition at line 164 of file parameters.h.
|
static |
Definition at line 165 of file parameters.h.
|
static |
Cached copy of spatial cell IDs on this process.
Definition at line 76 of file parameters.h.
|
static |
Definition at line 245 of file parameters.h.
|
static |
Definition at line 262 of file parameters.h.
|
static |
Maximum allowed field solver subcycles.
Definition at line 140 of file parameters.h.
|
static |
Definition at line 225 of file parameters.h.
|
static |
Maximum rotation in acceleration for semilagrangian solver
Definition at line 156 of file parameters.h.
|
static |
Maximum number of subcycles in acceleration
Definition at line 157 of file parameters.h.
|
static |
Maximum wave velocity allowed in LDZ.
Definition at line 139 of file parameters.h.
|
static |
If true, mesh was repartitioned on this time step.
Definition at line 75 of file parameters.h.
|
static |
Definition at line 265 of file parameters.h.
|
static |
Definition at line 257 of file parameters.h.
|
static |
Definition at line 258 of file parameters.h.
|
static |
Definition at line 259 of file parameters.h.
|
static |
Definition at line 261 of file parameters.h.
|
static |
Definition at line 256 of file parameters.h.
|
static |
Definition at line 236 of file parameters.h.
|
static |
Definition at line 263 of file parameters.h.
|
static |
Enable/choose spatial order of the electron pressure gradient term in Ohm's law. 0: off, 1: 1st spatial order.
Definition at line 144 of file parameters.h.
|
static |
Enable/choose spatial order of Hall term in Ohm's law JXB term. 0: off, 1: 1st spatial order, 2: 2nd spatial order.
Definition at line 142 of file parameters.h.
|
static |
List of data reduction operators (DROs) to add to the grid file output.
Definition at line 171 of file parameters.h.
|
static |
Definition at line 246 of file parameters.h.
|
static |
Definition at line 239 of file parameters.h.
|
static |
Definition at line 238 of file parameters.h.
|
static |
Definition at line 243 of file parameters.h.
|
static |
Definition at line 241 of file parameters.h.
|
static |
Definition at line 242 of file parameters.h.
|
static |
Definition at line 240 of file parameters.h.
|
static |
If true, propagators should measure their time consumption in preparation for mesh repartitioning.
Definition at line 167 of file parameters.h.
|
static |
Project to be used in this run.
Definition at line 182 of file parameters.h.
|
static |
If true, magnetic field is propagated during the simulation.
Definition at line 133 of file parameters.h.
|
static |
If true, distribution function is propagated in velocity space during the simulation.
Definition at line 134 of file parameters.h.
|
static |
If true, distribution function is propagated in ordinary space during the simulation.
Definition at line 136 of file parameters.h.
|
static |
Load rebalance interval (steps).
Definition at line 166 of file parameters.h.
|
static |
If true, MPI stencils should be recalculated because of load balancing.
Definition at line 131 of file parameters.h.
|
static |
Definition at line 122 of file parameters.h.
|
static |
Path to the location where recover files should be written. Defaults to the local directory, also if the specified destination is not writeable.
Definition at line 128 of file parameters.h.
|
static |
Definition at line 211 of file parameters.h.
|
static |
Definition at line 218 of file parameters.h.
|
static |
Definition at line 210 of file parameters.h.
|
static |
Do not refine at x coordinates above this value.
Definition at line 222 of file parameters.h.
|
static |
Do not refine at y coordinates above this value.
Definition at line 223 of file parameters.h.
|
static |
Do not refine at z coordinates above this value.
Definition at line 224 of file parameters.h.
|
static |
Do not refine at x coordinates below this value.
Definition at line 219 of file parameters.h.
|
static |
Do not refine at y coordinates below this value.
Definition at line 220 of file parameters.h.
|
static |
Do not refine at z coordinates below this value.
Definition at line 221 of file parameters.h.
|
static |
Definition at line 193 of file parameters.h.
|
static |
Definition at line 212 of file parameters.h.
Resistivity in Ohm's law eta*J term.
Definition at line 141 of file parameters.h.
|
static |
If defined, restart from this file
Definition at line 175 of file parameters.h.
|
static |
Collection of MPI-IO hints passed for restart IO. Pairs of key-value strings.
Definition at line 112 of file parameters.h.
|
static |
stripe_factor for restart writing
Definition at line 124 of file parameters.h.
|
static |
Collection of MPI-IO hints passed for restart IO. Pairs of key-value strings.
Definition at line 114 of file parameters.h.
|
static |
Path to the location where restart files should be written. Defaults to the local directory, also if the specified destination is not writeable.
Definition at line 126 of file parameters.h.
|
static |
Interval in timesteps for recover data
Definition at line 120 of file parameters.h.
|
static |
Interval in walltime seconds for restart data
Definition at line 119 of file parameters.h.
|
static |
Definition at line 195 of file parameters.h.
|
static |
stripe_factor for bulk and initial grid writing
Definition at line 125 of file parameters.h.
|
static |
Write all output DROs or not.
Definition at line 106 of file parameters.h.
|
static |
Definition at line 87 of file parameters.h.
|
static |
At cells intersecting spheres with those radii centred at the origin write out their velocity space in each class.
Definition at line 100 of file parameters.h.
|
static |
Every this many cells for those on selected shells write out their velocity space in each class.
Definition at line 103 of file parameters.h.
|
static |
Every this many cells write out their velocity space in each class.
Definition at line 86 of file parameters.h.
|
static |
Every this many lines of cells along the x direction write out their velocity space in each class.
Definition at line 91 of file parameters.h.
|
static |
Every this many lines of cells along the y direction write out their velocity space in each class.
Definition at line 94 of file parameters.h.
|
static |
Every this many lines of cells along the z direction write out their velocity space in each class.
Definition at line 97 of file parameters.h.
|
static |
Write fg_ variables in this file class or not.
Definition at line 105 of file parameters.h.
|
static |
Collection of MPI-IO hints passed for non-restart IO. Pairs of key-value strings.
Definition at line 110 of file parameters.h.
|
static |
Names for the different classes of grid output
Definition at line 82 of file parameters.h.
|
static |
Save this series in this location. Default is ./
Definition at line 83 of file parameters.h.
|
static |
Definition at line 89 of file parameters.h.
|
static |
Definition at line 88 of file parameters.h.
|
static |
How many files have been written of each class
Definition at line 108 of file parameters.h.
|
static |
Interval in simusecond for output for each class
Definition at line 84 of file parameters.h.
|
static |
Current simulation time.
Definition at line 52 of file parameters.h.
|
static |
Maximum simulation time.
Definition at line 54 of file parameters.h.
|
static |
Initial simulation time.
Definition at line 53 of file parameters.h.
|
static |
The number of the current timestep. 0=initial state.
Definition at line 73 of file parameters.h.
|
static |
Maximum timestep.
Definition at line 72 of file parameters.h.
|
static |
Timestep when simulation starts, needed for restarts.
Definition at line 71 of file parameters.h.
|
static |
Definition at line 196 of file parameters.h.
|
static |
Definition at line 199 of file parameters.h.
|
static |
Definition at line 206 of file parameters.h.
|
static |
Definition at line 203 of file parameters.h.
|
static |
Definition at line 266 of file parameters.h.
|
static |
Accelerate also Maxwellian boundary cells
Definition at line 158 of file parameters.h.
|
static |
Flag for activating all-local ghost translation.
Definition at line 63 of file parameters.h.
|
static |
Define extent of ghost-translated region in all-local ghost translation.
Definition at line 64 of file parameters.h.
The maximum CFL limit for propagation of distribution function. Used to set timestep if useCFLlimit is true.
Definition at line 59 of file parameters.h.
The minimum CFL limit for propagation of distribution function. Used to set timestep if useCFLlimit is true.
Definition at line 61 of file parameters.h.
|
static |
Buffer size in bytes passed to VLSV writer.
Definition at line 123 of file parameters.h.
|
static |
Definition at line 205 of file parameters.h.
|
static |
Definition at line 204 of file parameters.h.
|
static |
true if writing into VLSV in floats instead of doubles, false otherwise
Definition at line 177 of file parameters.h.
|
static |
If true, write full BGB components and derivatives in a dedicated file, then exit.
Definition at line 118 of file parameters.h.
|
static |
If true, initial state is written. This is useful for debugging as the restarts are always written out after propagation of 0.5dt in real space.
Definition at line 116 of file parameters.h.
|
static |
true if writing into restart files in floats instead of doubles, false otherwise
Definition at line 179 of file parameters.h.
|
static |
Initial number of spatial cells in x-direction.
Definition at line 48 of file parameters.h.
X-coordinate of the upper right corner of the spatial grid.
Definition at line 39 of file parameters.h.
X-coordinate of the lower left corner of the spatial grid.
Definition at line 38 of file parameters.h.
|
static |
Initial number of spatial cells in y-direction.
Definition at line 49 of file parameters.h.
Y-coordinate of the upper right corner of the spatial grid.
Definition at line 41 of file parameters.h.
Y-coordinate of the lower left corner of the spatial grid.
Definition at line 40 of file parameters.h.
|
static |
Initial number of spatial cells in z-direction.
Definition at line 50 of file parameters.h.
Z-coordinate of the upper right corner of the spatial grid.
Definition at line 43 of file parameters.h.
Z-coordinate of the lower left corner of the spatial grid.
Definition at line 42 of file parameters.h.