From 0667b76b23075ead251e1d97d90f9ad5f6c6c026 Mon Sep 17 00:00:00 2001 From: rideout Date: Thu, 28 Nov 2002 12:25:48 +0000 Subject: Added scheduled routine for 'resetting symmetries' for WaveToy. Added function prototypes. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@55 eec4d7dc-71c2-46d6-addf-10296150bf52 --- src/SetSym.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/SetSym.c b/src/SetSym.c index 31d39d3..9c5b8c5 100644 --- a/src/SetSym.c +++ b/src/SetSym.c @@ -21,7 +21,14 @@ static const char *rcsid = "$Id$"; -CCTK_FILEVERSION(BetaThorns_Cartoon2D_SetSym_c) +CCTK_FILEVERSION(BetaThorns_Cartoon2D_SetSym_c); + +/* function prototypes */ +int ResetSym(cGH* GH, const char* vn); +void Cartoon_SetSym_Einstein(CCTK_ARGUMENTS); +void Cartoon_SetSym_BSSN(CCTK_ARGUMENTS); +void Cartoon_SetSym_WaveToy(CCTK_ARGUMENTS); + /*@@ @routine Cartoon_ResetSym @@ -232,3 +239,22 @@ Cartoon_SetSym_BSSN(CCTK_ARGUMENTS) free(evolution_method); } } + + + /*@@ + @routine Cartoon_SetSym_WaveToy + @date Oct 2002 + @author David Rideout + @desc + Resets the symmetries for the WaveToy grid function so + that boundary conditions are not applied to the cartoon + faces. + @enddesc + @@*/ + +void Cartoon_SetSym_WaveToy(CCTK_ARGUMENTS) { + DECLARE_CCTK_ARGUMENTS; + + CCTK_INFO("Resetting cartoon boundary symmetry for WaveToy variable"); + ResetSym(cctkGH, "wavetoy::phi"); +} -- cgit v1.2.3