diff options
Diffstat (limited to 'src/dissipation.c')
-rw-r--r-- | src/dissipation.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/src/dissipation.c b/src/dissipation.c index 71fcab9..87f303d 100644 --- a/src/dissipation.c +++ b/src/dissipation.c @@ -145,6 +145,7 @@ void CCTK_FCALL CCTK_FNAME(dissipation_8_4_alt) (const CCTK_REAL *var, const CCTK_REAL *dx, const CCTK_REAL *epsdis, CCTK_REAL *rhs); +void CCTK_FCALL CCTK_FNAME(get_grid_offsets) (CCTK_INT *offset); static void apply (int const varindex, char const * const optstring, void * const arg); @@ -191,30 +192,8 @@ apply (int const varindex, char const * const optstring, void * const arg) offset[i] = 0; } if ( use_shiftout ) { - const CCTK_INT* shiftout_x_lower = (const CCTK_INT*) CCTK_ParameterGet ( "boundary_shiftout_x_lower", "coordbase", &type ); - if (shiftout_x_lower != NULL ) { - offset[0] = *shiftout_x_lower; - } - const CCTK_INT* shiftout_x_upper = (const CCTK_INT*) CCTK_ParameterGet ( "boundary_shiftout_x_upper", "coordbase", &type ); - if (shiftout_x_upper != NULL ) { - offset[1] = *shiftout_x_upper; - } - const CCTK_INT* shiftout_y_lower = (const CCTK_INT*) CCTK_ParameterGet ( "boundary_shiftout_y_lower", "coordbase", &type ); - if (shiftout_y_lower != NULL ) { - offset[2] = *shiftout_y_lower; - } - const CCTK_INT* shiftout_y_upper = (const CCTK_INT*) CCTK_ParameterGet ( "boundary_shiftout_y_upper", "coordbase", &type ); - if (shiftout_y_upper != NULL ) { - offset[3] = *shiftout_y_upper; - } - const CCTK_INT* shiftout_z_lower = (const CCTK_INT*) CCTK_ParameterGet ( "boundary_shiftout_z_lower", "coordbase", &type ); - if (shiftout_z_lower != NULL ) { - offset[4] = *shiftout_z_lower; - } - const CCTK_INT* shiftout_z_upper = (const CCTK_INT*) CCTK_ParameterGet ( "boundary_shiftout_z_upper", "coordbase", &type ); - if (shiftout_z_upper != NULL ) { - offset[5] = *shiftout_z_upper; - } + /* get values of boundary_shiftout_* from CoordBase */ + CCTK_FNAME(get_grid_offsets) (offset); } SBP_determine_onesided_stencil (cctkGH, onesided); |