Return the number of ghost zones.
More...
Go to the source code of this file.
Return the number of ghost zones.
Return the number of ghost zones employed by the selected numerical algorithm. The minimum number for a 2nd-order algorithm is 2. Higher-order interpolation scheme may require more zones.
- Authors
- A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
- Date
- Aug 24, 2015
Definition in file get_nghost.c.
Compute the number of ghost zones, depending on the selected scheme.
Definition at line 18 of file get_nghost.c.
28 #if RECONSTRUCTION == FLAT
32 #elif RECONSTRUCTION == LINEAR || RECONSTRUCTION == LimO3\
33 || RECONSTRUCTION == WENO3
34 #if LIMITER == FOURTH_ORDER_LIM
40 #elif RECONSTRUCTION == LINEAR_MULTID
44 #elif RECONSTRUCTION == PARABOLIC
46 #if PHYSICS == HD || PHYSICS == RHD
52 #elif RECONSTRUCTION == WENO3_FD || RECONSTRUCTION == LIMO3_FD
56 #elif RECONSTRUCTION == WENOZ_FD || \
57 RECONSTRUCTION == MP5_FD
63 #if SHOCK_FLATTENING == ONED
65 nghost =
MAX(4, nghost);
67 #elif SHOCK_FLATTENING == MULTID
76 nghost =
MAX(3, nghost);
98 nghost =
MAX(3,nghost);
102 #if (defined CH_SPACEDIM) && (TIME_STEPPING == RK_MIDPOINT)
void Limiter(double *, double *, double *, int, int, Grid *)