diff options
Diffstat (limited to 'src/dissipation.c')
-rw-r--r-- | src/dissipation.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/dissipation.c b/src/dissipation.c index 2b28950..6426431 100644 --- a/src/dissipation.c +++ b/src/dissipation.c @@ -27,6 +27,33 @@ void CCTK_FCALL CCTK_FNAME(dissipation_6_5_opt) (const CCTK_REAL *var, const CCTK_REAL *epsdis, const CCTK_REAL *diss_fraction, CCTK_REAL *rhs); +void CCTK_FCALL CCTK_FNAME(dissipation_2_1) (const CCTK_REAL *var, + const CCTK_INT *ni, + const CCTK_INT *nj, + const CCTK_INT *nk, + const CCTK_INT *bbox, + const CCTK_INT *gsize, + const CCTK_REAL *dx, + const CCTK_REAL *epsdis, + CCTK_REAL *rhs); +void CCTK_FCALL CCTK_FNAME(dissipation_4_2) (const CCTK_REAL *var, + const CCTK_INT *ni, + const CCTK_INT *nj, + const CCTK_INT *nk, + const CCTK_INT *bbox, + const CCTK_INT *gsize, + const CCTK_REAL *dx, + const CCTK_REAL *epsdis, + CCTK_REAL *rhs); +void CCTK_FCALL CCTK_FNAME(dissipation_6_3) (const CCTK_REAL *var, + const CCTK_INT *ni, + const CCTK_INT *nj, + const CCTK_INT *nk, + const CCTK_INT *bbox, + const CCTK_INT *gsize, + const CCTK_REAL *dx, + const CCTK_REAL *epsdis, + CCTK_REAL *rhs); void CCTK_FCALL CCTK_FNAME(dissipation_8_4) (const CCTK_REAL *var, const CCTK_INT *ni, const CCTK_INT *nj, @@ -124,6 +151,24 @@ apply (int const varindex, char const * const optstring, void * const arg) if ( CCTK_Equals(norm_type,"Diagonal") ) { switch(order) { + case 2: { + CCTK_FNAME(dissipation_2_1) + (varptr, &cctk_lsh[0], &cctk_lsh[1], &cctk_lsh[2], + bbox, gsize, dx, &epsdis, rhsptr); + break; + } + case 4: { + CCTK_FNAME(dissipation_4_2) + (varptr, &cctk_lsh[0], &cctk_lsh[1], &cctk_lsh[2], + bbox, gsize, dx, &epsdis, rhsptr); + break; + } + case 6: { + CCTK_FNAME(dissipation_6_3) + (varptr, &cctk_lsh[0], &cctk_lsh[1], &cctk_lsh[2], + bbox, gsize, dx, &epsdis, rhsptr); + break; + } case 8: { CCTK_FNAME(dissipation_8_4) (varptr, &cctk_lsh[0], &cctk_lsh[1], &cctk_lsh[2], |