diff options
Diffstat (limited to 'src/Kerr.c')
-rw-r--r-- | src/Kerr.c | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -81,24 +81,33 @@ void KerrID(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, +"KerrID(): impossible value for conformal_storage=\"%s\"!"); /*NOTREACHED*/ + } } else { make_conformal_derivs = 0; } + /* printf("npoints: %i\n",npoints); */ for(i = 0; i < npoints; i++) { |