aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-10-26 15:00:54 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-10-26 15:00:54 +0000
commit2a3e4e40c1f5895fc614175146bb59acd845ac7c (patch)
tree17985790cac9886c8b0b3e1cdce2079c6d7a74fd /src
parent786c14a8093d4177bb32beddd43bd58496526213 (diff)
minor permutation of code and comment clarification
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@856 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r--src/driver/find_horizons.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/driver/find_horizons.cc b/src/driver/find_horizons.cc
index 9506634..32554a4 100644
--- a/src/driver/find_horizons.cc
+++ b/src/driver/find_horizons.cc
@@ -119,6 +119,16 @@ const struct solver_info& solver_info = state.solver_info;
if (state.timer_handle >= 0)
then CCTK_TimerResetI(state.timer_handle);
+// what are the semantics of the Cactus gxx variables? (these may
+// change from one call to another, so we have to re-check each time)
+if (CCTK_Equals(metric_type, "physical"))
+ then state.cgi.Cactus_conformal_metric = false;
+else if (CCTK_Equals(metric_type, "static conformal"))
+ then state.cgi.Cactus_conformal_metric = (conformal_state > 0);
+else CCTK_VWarn(-1, __LINE__, __FILE__, CCTK_THORNSTRING,
+"AHFinderDirect_find_horizons(): unknown metric_type=\"%s\"!",
+ metric_type); /*NOTREACHED*/
+
// get the Cactus time step and decide if we want to output [hH] now
IO_info.time_iteration = cctk_iteration;
const bool output_h
@@ -128,15 +138,6 @@ const bool output_H
= (IO_info.how_often_to_output_H > 0)
&& ((IO_info.time_iteration % IO_info.how_often_to_output_H) == 0);
-// what are the semantics of the Cactus gxx variables?
-if (CCTK_Equals(metric_type, "physical"))
- then state.cgi.Cactus_conformal_metric = false;
-else if (CCTK_Equals(metric_type, "static conformal"))
- then state.cgi.Cactus_conformal_metric = (conformal_state > 0);
-else CCTK_VWarn(-1, __LINE__, __FILE__, CCTK_THORNSTRING,
-"AHFinderDirect_find_horizons(): unknown metric_type=\"%s\"!",
- metric_type); /*NOTREACHED*/
-
//
// we need to re-fetch the Cactus data pointers at least each time step,
// because they change each time Cactus rotates the time levels