PLUTO  4.4-patch2
glm.h
Go to the documentation of this file.
1 /* ///////////////////////////////////////////////////////////////////// */
24 /* ///////////////////////////////////////////////////////////////////// */
25 #define GLM_MHD
26 
27 #ifndef GLM_ALPHA
28  #define GLM_ALPHA 0.1
29 #endif
30 
31 #ifndef GLM_EXTENDED
32  #define GLM_EXTENDED NO
37 #endif
38 
39 #ifndef GLM_COMPUTE_DIVB
40  #define GLM_COMPUTE_DIVB NO
41 #endif
42 
43 #if (PHYSICS == ResRMHD) && !(defined GLM_COMPUTE_DIVE)
44  #if CHARGE_SCHEME == 1
45  #define GLM_COMPUTE_DIVE YES
46  #else
47  #define GLM_COMPUTE_DIVE NO
48  #endif
49 #else
50  #define GLM_COMPUTE_DIVE NO
51 #endif
52 
53 /* with chombo, COMPUTE_DIVB must be
54  disabled or a segfault will occur */
55 
56 #ifdef CHOMBO
57  #undef GLM_COMPUTE_DIVB
58  #undef GLM_COMPUTE_DIVE
59  #define GLM_COMPUTE_DIVB NO
60  #define GLM_COMPUTE_DIVE NO
61 #endif
62 
63 extern double glm_ch;
65 void GLM_Solve (const Sweep *, int, int, Grid *);
66 void GLM_Init (const Data *, const timeStep *, Grid *);
67 void GLM_Source (const Data *, double, Grid *);
68 void GLM_ExtendedSource (const Sweep *, double, int, int, Grid *);
69 
70 #if GLM_COMPUTE_DIVB == YES
71  void GLM_ComputeDivB(const Sweep *sweep, Grid *grid);
72  double ***GLM_GetDivB(void);
73 #endif
74 
75 
76 #if GLM_COMPUTE_DIVE == YES
77  void GLM_ComputeDivE(const Sweep *sweep, Grid *grid);
78  double ***GLM_GetDivE(void);
79 #endif
80 
void GLM_ExtendedSource(const Sweep *, double, int, int, Grid *)
Definition: glm.c:213
Definition: structs.h:124
void GLM_Init(const Data *, const timeStep *, Grid *)
Definition: glm.c:341
Definition: structs.h:514
double glm_ch
Definition: glm.c:21
void GLM_Source(const Data *, double, Grid *)
Definition: glm.c:157
void GLM_ComputeDivE(const Sweep *sweep, Grid *grid)
Definition: glm.c:456
void GLM_Solve(const Sweep *, int, int, Grid *)
Definition: glm.c:24
Definition: structs.h:363
Definition: structs.h:289