23 #define MX2 (COMPONENTS >= 2 ? 2: 255)
24 #define MX3 (COMPONENTS == 3 ? 3: 255)
25 #define BX1 (COMPONENTS + 1)
26 #define BX2 (COMPONENTS >= 2 ? (BX1+1): 255)
27 #define BX3 (COMPONENTS == 3 ? (BX1+2): 255)
30 #define ENG (2*COMPONENTS + 1)
33 #if DIVB_CONTROL == DIV_CLEANING
34 #define PSI_GLM (2*COMPONENTS + 1 + HAVE_ENERGY)
41 #define NFLX (1 + 2*COMPONENTS + HAVE_ENERGY + (DIVB_CONTROL == DIV_CLEANING))
63 #if DIVB_CONTROL != DIV_CLEANING
74 #if DIVB_CONTROL == DIV_CLEANING
85 #define AX1 (NVAR + 1)
86 #define AX2 (NVAR + 2)
87 #define AX3 (NVAR + 3)
99 #if GEOMETRY == CARTESIAN
113 #if GEOMETRY == CYLINDRICAL
127 #if GEOMETRY == POLAR
141 #if GEOMETRY == SPHERICAL
162 #if BACKGROUND_FIELD == YES
167 void Eigenvalues (
double **,
double *,
double **,
int,
int);
169 void PrimEigenvectors (
double *,
double,
double,
double *,
double **,
double **);
171 double **,
double **,
double *);
173 void Flux (
double **,
double **,
double *,
double **,
double **,
175 void HLL_Speed (
double **,
double **,
double *,
double *,
double **,
176 double *,
double *,
int,
int);
177 void MaxSignalSpeed (
double **,
double *,
double *,
double *,
double **,
int,
int);
178 void PrimToCons (
double **,
double **,
int,
int);
179 void PrimRHS (
double *,
double *,
double,
double,
double *);
181 double *,
double *,
double **,
Grid *);
183 #if DIVB_CONTROL == EIGHT_WAVES
188 #elif DIVB_CONTROL == DIV_CLEANING
192 #elif DIVB_CONTROL == CONSTRAINED_TRANSPORT
203 #if RESISTIVITY != NO
void Flux(double **, double **, double *, double **, double *, int, int)
void HLL_DivBSource(const State_1D *state, double **Uhll, int beg, int end, Grid *grid)
void Riemann_Solver(const State_1D *, int, int, double *, Grid *)
void BackgroundField(double x1, double x2, double x3, double *B0)
Riemann_Solver HLLC_Solver
Riemann_Solver Roe_Solver
void PrimToCons(double **, double **, int, int)
Riemann_Solver HLL_Linde_Solver
Header file for GLM Divergence Cleaning.
double ** GetBackgroundField(int beg, int end, int where, Grid *grid)
Header file for Constrained-Transport (CT) module.
int ConsToPrim(double **, double **, int, int, unsigned char *)
void Eigenvalues(double **, double *, double **, int, int)
void HLL_Speed(double **, double **, double *, double *, double *, double *, int, int)
void Roe_DivBSource(const State_1D *state, int is, int ie, Grid *grid)
void ConsEigenvectors(double *, double *, double, double **, double **, double *)
void PrimSource(const State_1D *, int, int, double *, double *, double **, Grid *)
Riemann_Solver HLLD_Solver
Shearing-Box module header file.
void MaxSignalSpeed(double **, double *, double *, double *, int, int)
Riemann_Solver HLL_Solver
Resistive MHD module header file.
void PrimRHS(double *, double *, double, double, double *)
void PrimEigenvectors(double *, double, double, double *, double **, double **)