Appearance
adam_flume_parameters
ADAM, FLUME parameters: variables indexes, accepted option values, shared helpers.
Every option value FLUME accepts from the INI file is a named constant here, so each parser matches against one list and its error message can name the accepted spellings.
Source: src/app/flume/common/adam_flume_parameters.F90
Dependencies
Contents
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
IQ_R | integer(kind=I4P) | parameter | Density. |
IQ_RU | integer(kind=I4P) | parameter | Momentum, x component. |
IQ_RV | integer(kind=I4P) | parameter | Momentum, y component. |
IQ_RW | integer(kind=I4P) | parameter | Momentum, z component. |
IQ_RE | integer(kind=I4P) | parameter | Total energy per unit volume (MHD: includes the magnetic energy |B|^2/2). |
IQ_BX | integer(kind=I4P) | parameter | Magnetic field, x component (MHD). |
IQ_BY | integer(kind=I4P) | parameter | Magnetic field, y component (MHD). |
IQ_BZ | integer(kind=I4P) | parameter | Magnetic field, z component (MHD). |
IQ_PSI | integer(kind=I4P) | parameter | GLM divergence-cleaning scalar (MHD with GLM). |
IA_R | integer(kind=I4P) | parameter | Density. |
IA_U | integer(kind=I4P) | parameter | Velocity, x component. |
IA_V | integer(kind=I4P) | parameter | Velocity, y component. |
IA_W | integer(kind=I4P) | parameter | Velocity, z component. |
IA_P | integer(kind=I4P) | parameter | Pressure (thermal). |
IA_T | integer(kind=I4P) | parameter | Temperature. |
IA_H | integer(kind=I4P) | parameter | Total specific enthalpy (MHD: (E + p + |B|^2/2) / rho). |
IA_A | integer(kind=I4P) | parameter | Speed of sound. |
IA_BX | integer(kind=I4P) | parameter | Magnetic field, x component (MHD). |
IA_BY | integer(kind=I4P) | parameter | Magnetic field, y component (MHD). |
IA_BZ | integer(kind=I4P) | parameter | Magnetic field, z component (MHD). |
NV_EULER | integer(kind=I4P) | parameter | Conservative variables number, Euler model. |
NV_AUX | integer(kind=I4P) | parameter | Auxiliary variables number, Euler model. |
NV_MHD | integer(kind=I4P) | parameter | Conservative variables number, MHD without divergence control. |
NV_MHD_GLM | integer(kind=I4P) | parameter | Conservative variables number, MHD with GLM divergence cleaning. |
NV_AUX_MHD | integer(kind=I4P) | parameter | Auxiliary variables number, MHD (both variants). |
S_MAX | integer(kind=I4P) | parameter | Maximum WENO stencil half-width (weno-u-9). |
MODEL_EULER | integer(kind=I4P) | parameter | Compressible Euler (nv = 5). |
MODEL_MHD | integer(kind=I4P) | parameter | Ideal compressible MHD without divergence control (nv = 8). |
MODEL_MHD_GLM | integer(kind=I4P) | parameter | Ideal compressible MHD with GLM divergence cleaning (nv = 9). |
PHYSICAL_MODEL_EULER | character(len=5) | parameter | [physics].(physical_model): compressible Euler. |
PHYSICAL_MODEL_MHD_IDEAL | character(len=9) | parameter | [physics].(physical_model): ideal MHD. |
DIVERGENCE_CONTROL_GLM | character(len=3) | parameter | [mhd].(divergence_control): GLM cleaning. |
DIVERGENCE_CONTROL_NONE | character(len=4) | parameter | [mhd].(divergence_control): none. |
GLM_CH_CHECK_WARNING | character(len=7) | parameter | [mhd].(glm_ch_check): warn if c_h is slow. |
GLM_CH_CHECK_ERROR | character(len=5) | parameter | [mhd].(glm_ch_check): stop if c_h is slow. |
GLM_DAMPING_LENGTH_MIN_CELL | character(len=8) | parameter | [mhd].(glm_damping_length): min spacing. |
SCHEME_SPACE_WENO | character(len=4) | parameter | [numerics].(scheme_space): WENO flux splitting. |
RECON_CHARACTERISTIC | character(len=14) | parameter | [numerics].(reconstruction_variables). |
RECON_CONSERVATIVE | character(len=12) | parameter | [numerics].(reconstruction_variables). |
Functions
strip_control
Return a copy of an INI value with control characters (e.g. a CRLF carriage return) blanked.
trim(adjustl()) does not remove a trailing carriage return, so a value read from a CRLF file would miss every case of an option parser and hit its fatal case default. Blank them before matching.
Attributes: pure
Returns: character(len=len)
fortran
function strip_control(string) result(stripped)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
string | character(len=*) | in | Raw value as read from the INI file. |
Call graph