From 611cb52e47581864bb98c947ff70d7fb40f26a35 Mon Sep 17 00:00:00 2001 From: goodale Date: Thu, 6 May 2004 02:10:18 +0000 Subject: Making WaveToy versions more consistent. This change also fixes the bug in some of the implementations whereby "zero" rather than "scalar" was passed to the boundary condition routines - PR 1676. git-svn-id: http://svn.cactuscode.org/arrangements/CactusWave/WaveToyCXX/trunk@76 50555cc7-fb31-491a-85db-9a2874240742 --- src/WaveToy.cc | 13 ++++++++++--- 1 file 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) { -- cgit v1.2.3