8#include "../include/var_struc.h"
23 double const eps =
config[4];
24 if(ifv_L->
P < eps || ifv_R->
P < eps || ifv_L->
RHO < eps || ifv_R->
RHO < eps)
26 printf(
"<0.0 error - Reconstruction");
31 if(!isfinite(ifv_L->
d_p)|| !isfinite(ifv_R->
d_p)|| !isfinite(ifv_L->
d_u)|| !isfinite(ifv_R->
d_u)|| !isfinite(ifv_L->
d_rho)|| !isfinite(ifv_R->
d_rho))
33 printf(
"NAN or INFinite error - Slope");
39 if(!isfinite(ifv_L->
d_p)|| !isfinite(ifv_R->
d_p)|| !isfinite(ifv_L->
d_u)|| !isfinite(ifv_R->
d_u)|| !isfinite(ifv_L->
d_v)|| !isfinite(ifv_R->
d_v)|| !isfinite(ifv_L->
d_rho)|| !isfinite(ifv_R->
d_rho))
41 printf(
"NAN or INFinite error - d_Slope_x");
44 if(!isfinite(ifv_L->
t_p)|| !isfinite(ifv_R->
t_p)|| !isfinite(ifv_L->
t_u)|| !isfinite(ifv_R->
t_u)|| !isfinite(ifv_L->
t_v)|| !isfinite(ifv_R->
t_v)|| !isfinite(ifv_L->
t_rho)|| !isfinite(ifv_R->
t_rho))
46 printf(
"NAN or INFinite error - t_Slope_x");
67 double const eps =
config[4];
68 int const el = (int)
config[8];
76 if(star[2] < eps || star[0] < eps || star[3] < eps)
78 printf(
"<0.0 error - STAR");
81 if(!isfinite(star[1])|| !isfinite(star[2])|| !isfinite(star[0])|| !isfinite(star[3]))
83 printf(
"NAN or INFinite error - STAR");
86 if(!isfinite(dire[1])|| !isfinite(dire[2])|| !isfinite(dire[0])|| !isfinite(dire[3]))
88 printf(
"NAN or INFinite error - DIRE");
93 if(mid[2] < eps || mid[0] < eps)
95 printf(
"<0.0 error - STAR");
98 if(!isfinite(mid[1])|| !isfinite(mid[2])|| !isfinite(mid[0]))
100 printf(
"NAN or INFinite error - STAR");
103 if(!isfinite(dire[1])|| !isfinite(dire[2])|| !isfinite(dire[0]))
105 printf(
"NAN or INFinite error - DIRE");
113 if(mid[3] < eps || mid[0] < eps)
115 printf(
"<0.0 error - STAR");
118 if(!isfinite(mid[1])|| !isfinite(mid[2])|| !isfinite(mid[0])|| !isfinite(mid[3]))
120 printf(
"NAN or INFinite error - STAR");
123 if(!isfinite(dire[1])|| !isfinite(dire[2])|| !isfinite(dire[0])|| !isfinite(dire[3]))
125 printf(
"NAN or INFinite error - DIRE");
int star_dire_check(double *mid, double *dire, const int dim)
This function checks whether fluid variables of mid[] and dire[] are within the value range.
int ifvar_check(struct i_f_var *ifv_L, struct i_f_var *ifv_R, const int dim)
This function checks whether interfacial fluid variables are within the value range.
double config[N_CONF]
Initial configuration data array.
Interfacial Fluid VARiables.
double d_p
normal spatial derivatives.
double t_p
tangential spatial derivatives OR spatial derivatives in Lagrangian coordinate ξ.