aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2006-07-17 13:21:15 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2006-07-17 13:21:15 +0000
commitdf63bebe9bbcb70c858cc00591715e650999e313 (patch)
treefd47d989e021cdbdd6b47cea4475c11c14e21d8d /src
parent49e55a961198c44b9930d3f04a46684d9daf1f8f (diff)
fix a nasty bug (which led to wrong AHFs being found):
if StaticConformal is active and StaticConformal::metric_type == "static conformal" and StaticConformal::conformal_state == 0 (so no conformal factor is actually in effect, and in fact storage may not even be turned on for the psi gridfn) the code mistakenly used the psi gridfn anyway git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1459 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r--src/driver/find_horizons.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/find_horizons.cc b/src/driver/find_horizons.cc
index 1079bcb..bf3f25a 100644
--- a/src/driver/find_horizons.cc
+++ b/src/driver/find_horizons.cc
@@ -125,7 +125,7 @@ const struct verbose_info& verbose_info = state.verbose_info;
if (CCTK_Equals(state.metric_type, "physical"))
then cgi.use_Cactus_conformal_metric = false;
else if (CCTK_Equals(state.metric_type, "static conformal"))
- then cgi.use_Cactus_conformal_metric = (conformal_state > 0);
+ then cgi.use_Cactus_conformal_metric = (*conformal_state > 0);
else CCTK_VWarn(FATAL_ERROR, __LINE__, __FILE__, CCTK_THORNSTRING,
"AHFinderDirect_find_horizons(): unknown ADMBase::metric_type=\"%s\"!",
state.metric_type); /*NOTREACHED*/