10#define MAX(a,b) (((a) > (b)) ? (a) : (b))
14inline double minmod2(
const double s_L,
const double s_R);
15inline double minmod3(
const double s_L,
const double s_R,
const double s_m);
17inline double minmod2(
const double s_L,
const double s_R) __attribute__((always_inline));
18inline double minmod3(
const double s_L,
const double s_R,
const double s_m) __attribute__((always_inline));
24void DispPro(
const double pro,
const int step);
28void init_mem (
double * p[],
const int n,
int ** cell_pt);
29void init_mem_int(
int * p[],
const int n,
int ** cell_pt);
34void mat_mul(
const double A[],
const double B[],
double C[],
const int m,
const int p,
const int n);
35void mat_add(
const double A[],
const double B[],
double C[],
const int m,
const int n);
36void mat_sub(
const double A[],
const double B[],
double C[],
const int m,
const int n);
38int rinv(
double a[],
const int n);
44inline double minmod2(
const double s_L,
const double s_R)
48 else if(s_R > 0.0 && s_R < s_L)
50 else if(s_R <= 0.0 && s_R > s_L)
59inline double minmod3(
const double s_L,
const double s_R,
const double s_m)
61 if(s_L * s_m <= 0.0 || s_R * s_m <= 0.0)
63 else if(s_m > 0.0 && s_m < s_L && s_m < s_R)
65 else if(s_m <= 0.0 && s_m > s_L && s_m > s_R)
67 else if(s_R > 0.0 && s_R < s_L)
69 else if(s_R <= 0.0 && s_R > s_L)