diff options
author | korobkin <korobkin@f69c4107-0314-4c4f-9ad4-17e986b73f4a> | 2008-04-29 11:35:27 +0000 |
---|---|---|
committer | korobkin <korobkin@f69c4107-0314-4c4f-9ad4-17e986b73f4a> | 2008-04-29 11:35:27 +0000 |
commit | b5246b635fd29c06c6f1d71aa76662b8c20a52bb (patch) | |
tree | c9e080913e8061d61bbdf0173766f4feadb04c36 /src/call_derivs.c | |
parent | 53f63939c336f78e10f86feef033ebcff8250a9b (diff) |
(*) The grid offsets of the dissipation and derivative operators are made
correlated. If use_shiftout = yes, both offsets are read from the
CoordBase::boundary_shiftout_* parameters. Otherwise, both offsets are
set to zero.
git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/SummationByParts/trunk@106 f69c4107-0314-4c4f-9ad4-17e986b73f4a
Diffstat (limited to 'src/call_derivs.c')
-rw-r--r-- | src/call_derivs.c | 17 |
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) { |