DISPATCH
mhd_mod Module Reference

RAMSES Godunov solvers, use of guard zones; specifically in HLLD. More...

Data Types

type  mhd_t
 

Functions/Subroutines

subroutine pre_update (self)
 This procedure is called by solver_tupdate, before it calls mhd_tupdate.
 

Variables

logical, save first_time =.true.
 

Detailed Description

RAMSES Godunov solvers, use of guard zones; specifically in HLLD.

Staggered mesh solver using entropy per unit volume as the energy variable.

godunov unsplit 1 2 3 4 ui uo ub ctoprim:uin +—+—+—+......+—+—+—+ ! in, with guards ctoprim:bx +—+—+—+......+—+—+—+ ! down-staggered ctoprim:q +—+—+—+......+—+—+ ! up-staggered in b uslope:dq +—+—+......+—+ ! both ends loose trace3d:qm +—+—+......+—+ ! down-staggered trace3d:qp +—+......+—+—+ ! up-shifted cmpflxm +—+......+—+ ! need qm & qp cmp_mag_flx +—+......+—+ ! is down-staggered unew +—+......+ ! up-staggered

Flop counting is enable via annotation at the end of lines. To count flops, use a Linux pipeline such as

% grep ops: ../../../solvers/stagger2/mhd_mod.f90 | sed 's/.*ops://' | sumcol 2

where 'sumcol' is any script that sums up values in column 2