aboutsummaryrefslogtreecommitdiff
path: root/ML_WaveToy
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-01-14 12:20:47 +0100
committerErik Schnetter <schnetter@cct.lsu.edu>2008-01-14 12:20:47 +0100
commit7ecbd6e427f539e2f5067b2dcca32ef613315a8a (patch)
tree36a47629d008c02eee003a21ba86f68cfb3ccdcd /ML_WaveToy
parentfe57e3582691a9ef303de7c50f11e59b7f2f3aa4 (diff)
Update McLachlan. ML_BSSN_Helper is now required at run time
Calculate the complete RHS in one loop, including matter if desired. This requires different McLachlan builds for runs with and without matter. Make the number of active timelevels a run-time parameter. Register the slicing in ML_BSSN_Helper. This requires CoordGauge to be activated at run time. Add custom boundary conditions, to be used instead of Cactus boundary conditions. Make McLachlan fully compliant with the ADMBase initial data mechanism. Calculate RHS and constrains in special groups provided by ML_BSSN_Helper. ML_BSSN_Helper is now required at run time.
Diffstat (limited to 'ML_WaveToy')
-rw-r--r--ML_WaveToy/param.ccl6
-rw-r--r--ML_WaveToy/schedule.ccl22
2 files changed, 22 insertions, 6 deletions
diff --git a/ML_WaveToy/param.ccl b/ML_WaveToy/param.ccl
index 5964f1e..36cb15e 100644
--- a/ML_WaveToy/param.ccl
+++ b/ML_WaveToy/param.ccl
@@ -36,6 +36,12 @@ CCTK_INT ML_WaveToy_MaxNumConstrainedVars "Number of constrained variables used
58:58 :: "Number of constrained variables used by this thorn"
} 58
+private:
+CCTK_INT timelevels "Number of active timelevels"
+{
+ 0:2 :: ""
+} 2
+
restricted:
CCTK_INT WT_Gaussian_calc_every "WT_Gaussian_calc_every"
{
diff --git a/ML_WaveToy/schedule.ccl b/ML_WaveToy/schedule.ccl
index 5308b4c..b52fd02 100644
--- a/ML_WaveToy/schedule.ccl
+++ b/ML_WaveToy/schedule.ccl
@@ -8,9 +8,23 @@ STORAGE: WT_rhorhs[1]
STORAGE: WT_urhs[1]
-STORAGE: WT_rho[2]
+if (timelevels == 1)
+{
+ STORAGE: WT_rho[1]
+}
+if (timelevels == 2)
+{
+ STORAGE: WT_rho[2]
+}
-STORAGE: WT_u[2]
+if (timelevels == 1)
+{
+ STORAGE: WT_u[1]
+}
+if (timelevels == 2)
+{
+ STORAGE: WT_u[2]
+}
schedule ML_WaveToy_Startup at STARTUP
{
@@ -33,19 +47,16 @@ schedule ML_WaveToy_RegisterSymmetries at BASEGRID
schedule WT_Gaussian AT initial
{
LANG: C
-
} "WT_Gaussian"
schedule WT_RHS IN MoL_CalcRHS
{
LANG: C
-
} "WT_RHS"
schedule WT_RHS AT analysis
{
LANG: C
-
SYNC: WT_rhorhs
SYNC: WT_urhs
} "WT_RHS"
@@ -67,5 +78,4 @@ schedule ML_WaveToy_CheckBoundaries at BASEGRID
schedule group ApplyBCs as ML_WaveToy_ApplyBCs in MoL_PostStep after ML_WaveToy_ApplyBoundConds
{
# no language specified
-
} "Apply boundary conditions controlled by thorn Boundary"