aboutsummaryrefslogtreecommitdiff
path: root/src/WaveToy.cc
diff options
context:
space:
mode:
authorgoodale <goodale@50555cc7-fb31-491a-85db-9a2874240742>2004-05-06 02:10:18 +0000
committergoodale <goodale@50555cc7-fb31-491a-85db-9a2874240742>2004-05-06 02:10:18 +0000
commit611cb52e47581864bb98c947ff70d7fb40f26a35 (patch)
tree38ab923967faeacf0ce1cc5c2bcc59fb3773116b /src/WaveToy.cc
parent0a88f13ea0609d18286986d6724cdad910c5d76b (diff)
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
Diffstat (limited to 'src/WaveToy.cc')
-rw-r--r--src/WaveToy.cc13
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)
{