diff options
-rw-r--r-- | src/WaveToy.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/WaveToy.cc b/src/WaveToy.cc index ac1311c..4dd002e 100644 --- a/src/WaveToy.cc +++ b/src/WaveToy.cc @@ -110,16 +110,23 @@ extern "C" void WaveToyCXX_Boundaries(CCTK_ARGUMENTS) DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; - int ierr=-0; + int ierr = 0; if (CCTK_EQUALS(bound,"flat") || CCTK_EQUALS(bound,"static") || CCTK_EQUALS(bound,"radiation") || CCTK_EQUALS(bound,"robin") || - CCTK_EQUALS(bound,"zero") || CCTK_EQUALS(bound,"none")) + CCTK_EQUALS(bound,"none")) { - /* Uses all default arguments, so invalid table handle -1 can be passed */ + // Uses all default arguments, so invalid table handle -1 can be passed ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, -1, "wavetoy::phi", bound); } + else if (CCTK_EQUALS(bound,"zero")) + { + // Uses all default arguments, so invalid table handle -1 can be passed + ierr = Boundary_SelectVarForBC + (cctkGH, CCTK_ALL_FACES, 1, -1, "wavetoy::phi", "scalar"); + + } if (ierr < 0) { |