34 for (
int _c = 0;
_c < 4;
_c++) {
50 double v = 0.,
eta = 0.;
52 for (
int _n = 0;
_n < 1;
_n++)
72 for (
int _c = 0;
_c < 4;
_c++)
83 double eta = 0.,
v = 0.;
84 for (
int _c = 0;
_c < 4;
_c++)
109 for (
int _n = 0;
_n < 1;
_n++)
118 for (
int _c = 0;
_c < 4;
_c++) {
double(* gradient)(double, double, double)
vector g[]
We store the combined pressure gradient and acceleration field in g*.
static void restriction_elevation(Point point, scalar h)
Cell restriction is simpler.
static double default_sea_level
void conserve_elevation(void)
Finally we define a function which will be called by the user to apply these reconstructions.
static void prolongation_elevation(Point point, scalar h)
We also need to define a consistent prolongation function.
static void refine_elevation(Point point, scalar h)
static void refine_linear(Point point, scalar s)
void set_prolongation(scalar s, void(*prolongation)(Point, scalar))
void set_restriction(scalar s, void(*restriction)(Point, scalar))