Skip to content

test_flume_mhd_riemann_fnl_kernels ​

Unit test RV-0 (MHD, device half) of the FLUME MHD Riemann solvers: the evaluation routine run on host and device.

Module-level (not a contains-internal procedure): device routines must be module procedures.

Source: src/tests/flume/unit/test_flume_mhd_riemann_fnl.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
NRinteger(kind=I4P)parameterResults per pair and direction: nine fluxes, three
IFB1integer(kind=I4P)parameterResult index of the HLLD fallback flag (no divergence control).
IFB2integer(kind=I4P)parameterResult index of the HLLD fallback flag (GLM).
IFB3integer(kind=I4P)parameterResult index of the HLLD fallback flag (EGLM).
GAMMAreal(kind=R8P)parameterSpecific heats ratio.
CHreal(kind=R8P)parameterGLM cleaning speed.

Subroutines ​

evaluate ​

Evaluate the nine solvers on one pair of primitive states prim(1:9,1:2) (psi the ninth), direction d; the EGLM states are the GLM ones with psi^2 / 2 added to the energy.

fortran
subroutine evaluate(d, prim, res)

Arguments

NameTypeIntentAttributesDescription
dinteger(kind=I4P)inDirection.
primreal(kind=R8P)inPrimitive states of the pair.
resreal(kind=R8P)outResults.

Call graph