aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallen <allen@a491c6a4-70bf-4b89-8b36-d6c0cb1f094e>2002-05-04 08:42:16 +0000
committerallen <allen@a491c6a4-70bf-4b89-8b36-d6c0cb1f094e>2002-05-04 08:42:16 +0000
commit3b8eb84a204d89010059803c6e22d080ac66eb2b (patch)
tree1889ab6c820b7278f21c28360d41413275a8d8a8
parent8f5c357a5c60f089bf65701846ad6047079766a8 (diff)
register symmetries for mask
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/SpaceMask/trunk@6 a491c6a4-70bf-4b89-8b36-d6c0cb1f094e
-rw-r--r--schedule.ccl4
-rw-r--r--src/MaskInit.c33
2 files changed, 37 insertions, 0 deletions
diff --git a/schedule.ccl b/schedule.ccl
index 651f1ec..7fb1ef3 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -8,4 +8,8 @@ if (use_mask)
{
LANG: C
} "Set mask to one"
+ schedule MaskSym at CCTK_INITIAL
+ {
+ LANG: C
+ } "Set grid symmetries for mask"
}
diff --git a/src/MaskInit.c b/src/MaskInit.c
index 2991b23..4e42825 100644
--- a/src/MaskInit.c
+++ b/src/MaskInit.c
@@ -45,6 +45,39 @@ void MaskOne(CCTK_ARGUMENTS);
********************************************************************/
/*@@
+ @routine MaskSym
+ @date Fri 3 May 2002
+ @author Gabrielle Allen
+ @desc
+ Scheduled routine to set symmetries for mask
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+void MaskSym(CCTK_ARGUMENTS)
+{
+ int i;
+ DECLARE_CCTK_ARGUMENTS
+
+ int one;
+ int sym[3];
+
+ one = 1;
+
+ sym[0] = one;
+ sym[1] = one;
+ sym[2] = one;
+
+ SetCartSymVN(cctkGH, sym,"spacemask::emask");
+
+ return;
+}
+
+ /*@@
@routine MaskOne
@date
@author Miguel Alcubierre