40 for (
int l = 0;
l <
nl;
l++)
57 double r = 1. + 2.*(1./
rmin - 1.)/(
nl - 1.);
59 for (
int l = 0;
l <
nl;
l++)
77 double H0 = 0., H1 = 0.,
H;
99 for (
int _s = 0;
_s < 1;
_s++) {
119 for (
int _s = 0;
_s < 1;
_s++)
140 for (
int _s = 0;
_s < 1;
_s++) {
160 for (
int _s = 0;
_s < 1;
_s++) {
scalar * tracers
Here we set the gradient functions for each tracer (as defined in the user-provided tracers list).
int list_len(scalar *list)
return hxx pow(1.+sq(hx), 3/2.)
void geometric_beta(double rmin, bool top)
The default uniform layer distribution can be replaced with a geometric progression for the layer thi...
double * beta
The distribution of layers can be controlled using the beta array which defines the ratio of the thic...
void event_cleanup(void)
The beta array is freed at the end of the run.
void event_defaults(void)
Event: defaults (i = 0)
trace void vertical_remapping(scalar h, scalar *tracers)
The vertical_remapping() function takes a (block) field of layer thicknesses and the corresponding li...
void event_remap(void)
The remapping is applied at every timestep.
void remap_c(int npos, int nnew, const double xpos[npos], const double xnew[nnew], const int nvar, double fdat[npos-1][nvar], double fnew[nnew-1][nvar], double f_b, double lambda_b, double df_b, double f_t, double lambda_t, double df_t, bool limiter)