aboutsummaryrefslogtreecommitdiff
path: root/src/call_derivs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/call_derivs.c')
-rw-r--r--src/call_derivs.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/call_derivs.c b/src/call_derivs.c
index aeab3d7..c92dd34 100644
--- a/src/call_derivs.c
+++ b/src/call_derivs.c
@@ -125,8 +125,9 @@ void DiffGv ( const CCTK_POINTER_TO_CONST cctkGH_, const CCTK_INT dir,
const CCTK_INT *offset,
const CCTK_REAL *delta,
CCTK_REAL *dvar);
-
+ void CCTK_FCALL CCTK_FNAME(get_grid_offsets) (CCTK_INT *offset);
+
ni = cctk_lsh[0]; nj = cctk_lsh[1]; nk = cctk_lsh[2];
if ( table_handle >=0 ) {
@@ -159,18 +160,12 @@ void DiffGv ( const CCTK_POINTER_TO_CONST cctkGH_, const CCTK_INT dir,
for (i=0; i<6; i++) {
offset[i] = 0;
}
- if ( table_handle >=0 ) {
- nelements = Util_TableGetIntArray ( table_handle, 6, dummy, "offset" );
- if ( nelements == UTIL_ERROR_TABLE_NO_SUCH_KEY ) {
- } else if ( nelements != 6) {
- CCTK_WARN (0, "The options table has an entry \"offset\", but it does not have 6 elements");
- } else {
- for (i=0; i<6; i++) {
- offset[i] = dummy[i];
- }
- }
+ if ( use_shiftout ) {
+ /* get values of boundary_shiftout_* from CoordBase */
+ CCTK_FNAME(get_grid_offsets) (offset);
}
+
SBP_determine_onesided_stencil (cctkGH, onesided);
switch(dir) {