aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--param.ccl7
-rw-r--r--schedule.ccl16
2 files changed, 16 insertions, 7 deletions
diff --git a/param.ccl b/param.ccl
index b93b451..55b7c2d 100644
--- a/param.ccl
+++ b/param.ccl
@@ -558,3 +558,10 @@ int GRHydro_c2p_warn_from_reflevel "Start warning on given refinement level and
{
0: :: "Greater or equal to 0"
} 0
+
+# The following parameter is to reduce the number of syncs/boundary calls done
+# it will lead to correct results when set to yes ONLY when the simulation does not use
+# an atmosphere at all.
+boolean disable_sync_and_tmunu_after_MoL "Do not sync/prolongate and reset Tmunu after MoL integration is done" STEERABLE=ALWAYS
+{
+} "no"
diff --git a/schedule.ccl b/schedule.ccl
index 72ab253..f1de45f 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -986,13 +986,15 @@ if (CCTK_Equals(Bvec_evolution_method,"GRHydro"))
} "Reset the atmosphere"
}
-schedule group HydroBase_Boundaries AT EVOL AFTER MoL_Evolution AFTER (GRHydro_AtmosphereReset GRHydro_AtmosphereResetM)
-{
-} "HydroBase Boundary conditions group"
-
-schedule GROUP SetTmunu AT EVOL AFTER HydroBase_Boundaries BEFORE MoL_PseudoEvolution
-{
-} "Calculate the stress-energy tensor"
+if(!disable_sync_and_tmunu_after_MoL) {
+ schedule group HydroBase_Boundaries AT EVOL AFTER MoL_Evolution AFTER (GRHydro_AtmosphereReset GRHydro_AtmosphereResetM)
+ {
+ } "HydroBase Boundary conditions group"
+
+ schedule GROUP SetTmunu AT EVOL AFTER HydroBase_Boundaries BEFORE MoL_PseudoEvolution
+ {
+ } "Calculate the stress-energy tensor"
+}
} # end of if (CCTK_EQUALS(hydrobase::evolution_method, "GRHydro"))