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
43 scrhp = EXPAND(ap[VX1]*ap[VX1], + ap[VX2]*ap[VX2], + ap[VX3]*ap[VX3]);
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];
void CheckPrimStates(double **vM, double **vP, double **v0, int beg, int end)