[Commits] [svn:einsteintoolkit] GRHydro/trunk/ (Rev. 269)

roland.haas at physics.gatech.edu roland.haas at physics.gatech.edu
Thu Sep 15 11:45:26 CDT 2011


User: rhaas
Date: 2011/09/15 11:45 AM

Modified:
 /trunk/
  param.ccl, schedule.ccl

Log:
 introduce optimization that allows to turn off the
  additional sync/settmunu   after MoL is done. This will
  work only in runs that do not use an atmosphere.
 
 original commit by Christian Ott

File Changes:

Directory: /trunk/
==================

File [modified]: param.ccl
Delta lines: +7 -0
===================================================================
--- trunk/param.ccl	2011-09-15 16:44:26 UTC (rev 268)
+++ trunk/param.ccl	2011-09-15 16:45:26 UTC (rev 269)
@@ -558,3 +558,10 @@
 {
   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"

File [modified]: schedule.ccl
Delta lines: +9 -7
===================================================================
--- trunk/schedule.ccl	2011-09-15 16:44:26 UTC (rev 268)
+++ trunk/schedule.ccl	2011-09-15 16:45:26 UTC (rev 269)
@@ -986,14 +986,16 @@
   } "Reset the atmosphere"
 }
 
-schedule group HydroBase_Boundaries AT EVOL AFTER MoL_Evolution AFTER (GRHydro_AtmosphereReset GRHydro_AtmosphereResetM)
-{
-} "HydroBase Boundary conditions group"
+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"
+}
 
-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"))
   
 if (set_trivial_rp_grid_function)



More information about the Commits mailing list