15 #ifndef RESISTIVE_RMHD 
   16  #define RESISTIVE_RMHD   NO 
   27 #define  MX2 (COMPONENTS >= 2 ? 2: 255) 
   28 #define  MX3 (COMPONENTS == 3 ? 3: 255) 
   29 #define  BX1 (COMPONENTS + 1) 
   30 #define  BX2 (COMPONENTS >= 2 ? (BX1+1): 255) 
   31 #define  BX3 (COMPONENTS == 3 ? (BX1+2): 255) 
   34   #define ENG  (2*COMPONENTS + 1) 
   37 #if DIVB_CONTROL == DIV_CLEANING 
   38   #define PSI_GLM  (2*COMPONENTS + 1 + HAVE_ENERGY) 
   45 #define NFLX (2 + 2*COMPONENTS + (DIVB_CONTROL == DIV_CLEANING)) 
   61  #if DIVB_CONTROL != DIV_CLEANING 
   72  #if DIVB_CONTROL == DIV_CLEANING   
  111 #define   AX1  (NVAR + 1) 
  112 #define   AX2  (NVAR + 2) 
  113 #define   AX3  (NVAR + 3) 
  124 #if GEOMETRY == CYLINDRICAL 
  140 #if GEOMETRY == POLAR 
  156 #if GEOMETRY == SPHERICAL 
  176 #ifndef RMHD_FAST_EIGENVALUES 
  177   #define RMHD_FAST_EIGENVALUES  NO  
  186 #ifndef RMHD_REDUCED_ENERGY 
  187   #define RMHD_REDUCED_ENERGY    YES   
  194 int  ConsToPrim   (
double **, 
double **, 
int, 
int, 
unsigned char *);
 
  195 void PRIM_EIGENVECTORS (
double *, 
double, 
double, 
double *, 
double **, 
double **);
 
  196 int  Eigenvalues  (
double *, 
double, 
double, 
double *);
 
  201 void Flux      (
double **, 
double **, 
double *, 
double **, 
double *, 
int, 
int);
 
  202 void HLL_Speed (
double **, 
double **, 
double *, 
double *, 
double *, 
double *,
 
  203                 double *, 
double *, 
int, 
int);
 
  204 int MaxSignalSpeed (
double **, 
double *, 
double *, 
double *, 
double *, 
int, 
int);
 
  206 void PrimToCons   (
double **, 
double **, 
int, 
int);
 
  209 int  Magnetosonic (
double *vp, 
double cs2, 
double h, 
double *lambda);
 
  210 int  QuarticSolve (
double, 
double, 
double, 
double, 
double *);
 
  211 int  CubicSolve   (
double, 
double, 
double, 
double *);
 
  216 #if DIVB_CONTROL == EIGHT_WAVES 
  219 #elif DIVB_CONTROL == DIV_CLEANING 
  221 #elif DIVB_CONTROL == CONSTRAINED_TRANSPORT 
void Flux(double **, double **, double *, double **, double *, int, int)
 
void VelocityLimiter(double *, double *, double *)
 
int QuarticSolve(double, double, double, double, double *)
 
struct MAP_PARAM Map_param
 
int EnergySolve(Map_param *)
 
double m2
Square of total momentum (input). 
 
double D
Lab density (input). 
 
void PRIM_EIGENVECTORS(double *, double, double, double *, double **, double **)
 
void Riemann_Solver(const State_1D *, int, int, double *, Grid *)
 
int PressureFix(Map_param *)
 
Riemann_Solver HLLC_Solver
 
void PrimToCons(double **, double **, int, int)
 
Riemann_Solver HLL_Linde_Solver
 
Header file for GLM Divergence Cleaning. 
 
double S2
Square of S (input). 
 
Header file for Constrained-Transport (CT) module. 
 
void HLL_DIVB_SOURCE(const State_1D *, double **, int, int, Grid *)
 
int ConsToPrim(double **, double **, int, int, unsigned char *)
 
void Eigenvalues(double **, double *, double **, int, int)
 
int Magnetosonic(double *vp, double cs2, double h, double *lambda)
 
void HLL_Speed(double **, double **, double *, double *, double *, double *, int, int)
 
double rho
proper density (output) 
 
int CubicSolve(double, double, double, double *)
 
double W
D*h*lor (output). 
 
Riemann_Solver HLLD_Solver
 
double lor
Lorentz factor (output). 
 
void MaxSignalSpeed(double **, double *, double *, double *, int, int)
 
Riemann_Solver HLL_Solver
 
double prs
Thermal pressure (output). 
 
int EntropySolve(Map_param *)
 
double sigma_c
Conserved entropy (input). 
 
void POWELL_DIVB_SOURCE(const State_1D *, int, int, Grid *)
 
double B2
Square of magnetic field (input). 
 
double E
Total energy (input).