diff options
-rw-r--r-- | src/Misner_standard.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Misner_standard.c b/src/Misner_standard.c index cb14618..f5d8417 100644 --- a/src/Misner_standard.c +++ b/src/Misner_standard.c @@ -86,18 +86,27 @@ void Misner_standard(CCTK_ARGUMENTS) /* Check if we should create and store conformal factor stuff */ if(CCTK_EQUALS(metric_type, "static conformal")) { - *conformal_state = 1; - - if(CCTK_EQUALS(conformal_storage,"factor+derivs")) + if (CCTK_EQUALS(conformal_storage,"factor")) + { + *conformal_state = 1; + make_conformal_derivs = 0; + } + else if (CCTK_EQUALS(conformal_storage,"factor+derivs")) { *conformal_state = 2; make_conformal_derivs = 1; } - else if(CCTK_EQUALS(conformal_storage,"factor+derivs+2nd derivs")) + else if (CCTK_EQUALS(conformal_storage,"factor+derivs+2nd derivs")) { *conformal_state = 3; make_conformal_derivs = 1; } + else + { + CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING, +"Misner_Standard(): impossible value for conformal_storage=\"%s\"!"); + /*NOTREACHED*/ + } } else { |