Go to the source code of this file.
|
void | CheckPrimStates (double **vM, double **vP, double **v0, int beg, int end) |
|
void CheckPrimStates |
( |
double ** |
vM, |
|
|
double ** |
vP, |
|
|
double ** |
v0, |
|
|
int |
beg, |
|
|
int |
end |
|
) |
| |
Definition at line 4 of file check_states.c.
16 #if PHYSICS != ADVECTION
17 int i, nv, switch_to_1st;
21 for (i = beg; i <= end; i++){
33 switch_to_1st = (ap[PRS] < 0.0) || (am[PRS] < 0.0) ;
35 switch_to_1st = switch_to_1st ||
36 (ap[
RHO] < 0.0) || (am[
RHO] < 0.0) ;
40 #if (PHYSICS == RHD) || (PHYSICS == RMHD)
41 #if RECONSTRUCT_4VEL == NO
44 switch_to_1st = switch_to_1st || (scrhm >= 1.0);
45 switch_to_1st = switch_to_1st || (scrhp >= 1.0);
61 for (nv = 0; nv <
NVAR; nv++){
62 am[nv] = ap[nv] = ac[nv];