aboutsummaryrefslogtreecommitdiff
path: root/src/ParamCheck.c
diff options
context:
space:
mode:
authorjthorn <jthorn@e296648e-0e4f-0410-bd07-d597d9acff87>2002-06-16 18:42:41 +0000
committerjthorn <jthorn@e296648e-0e4f-0410-bd07-d597d9acff87>2002-06-16 18:42:41 +0000
commitf7216a27e1388f70b04fe68c2bd43449d668f457 (patch)
tree0c7673b21efc4745fd16afb6b320c63489eb3150 /src/ParamCheck.c
parentcf2fb9a92562b9471403b8205ce75d975de144d4 (diff)
[[This is a redo of my "cvs import" of 2002/06/11, this time using proper
cvs operations (commit/delete/add) to preserve the full CVS history of this thorn.]] This is a major cleanup/revision of AEIThorns/Exact. Major user-visible changes: * major expansion of doc/documentation.tex * major expansion of documentation in param.ccl file * rename all parameters, systematize spacetime/coordinate/parameter names (there is a perl script in par/convert-pars.pl to convert old parameter files to the new names) * [from Mitica Vulcanov] many additions and fixes to cosmological solutions and Schwarzschild-Lemaitre * fix stress-energy tensor computations so they work -- before they were all disabled in CVS (INCLUDES lines were commented out in interface.ccl) due to requiring excessive friendship with evolution thorns and/or public parameters; new code copies parameters to restricted grid scalars, which Cactus automagically "pushes" to friends * added some more tests to testsuite, though these don't yet work fully Additional internal changes: * rename many Fortran subroutines (and a few C ones too) so their names start with the thorn name to reduce the chances of name collisions with other thorns * move all metrics to subdirectory so the main source directory isn't so cluttered * move two files containing subroutines which were never called (they didn't belong in this thorn, but somehow got into cvs by accident) into new archive/ directory * some (small) improvements in efficiency -- the exact_model parameter is now decoded from a keyword (string) to an integer once at INITIAL, and that integer tested by the stress-energy tensor code, rather than requiring a separate series of string tests at each grid point (!) like the old stress-energy tensor code did Modified Files: ParamCheck.c added a check to make sure we don't try to set the shift if it doesn't have storage Startup.c make.code.defn slice_data.F slice_evolve.F slice_initialize.F Added Files: Bona_Masso_data.F moved from old exactdata.F blended_boundary.F moved from old exactblendbound.F boundary.F moved from old exactboundary.F decode_pars.F new file to decode exact_model into integer, copy parameters to grid scalars for Calc_Tmunu code gauge.F moved from old exactgauge.F initialize.F moved from old exactinitialize.F linear_extrap_one_bndry.F moved from old linextraponebound.F metric.F moved from old exactmetric.F xyz_blended_boundary.F moved from old exactcartblendbound.F git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/Exact/trunk@101 e296648e-0e4f-0410-bd07-d597d9acff87
Diffstat (limited to 'src/ParamCheck.c')
-rw-r--r--src/ParamCheck.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ParamCheck.c b/src/ParamCheck.c
index 24e5c62..27c10a4 100644
--- a/src/ParamCheck.c
+++ b/src/ParamCheck.c
@@ -53,13 +53,16 @@ void Exact_ParamCheck(CCTK_ARGUMENTS);
@calls
@calledby
@history
-
+ @hdate Tue Jun 11 18:25:49 CEST 2002
+ @hauthor Jonathan Thornburg
+ @desc Add a test that we're not trying to set the shift
+ with storage *not* present for it
+ @enddesc
@endhistory
@@*/
void Exact_ParamCheck(CCTK_ARGUMENTS)
{
- DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
if(! CCTK_EQUALS(metric_type, "physical"))
@@ -67,11 +70,11 @@ void Exact_ParamCheck(CCTK_ARGUMENTS)
CCTK_PARAMWARN("Unknown ADMBase::metric_type - known types are \"physical\"");
}
- if(CCTK_EQUALS(shift_evolution_method, "exact") && ! CCTK_EQUALS(initial_shift, "exact"))
+ if ( CCTK_EQUALS(shift_evolution_method, "exact")
+ && CCTK_EQUALS(initial_shift, "none") )
{
- CCTK_PARAMWARN("Exact shift evolution requires exact shift initial data");
+ CCTK_PARAMWARN("can't set the shift if there's no storage for it!");
}
-
}
/********************************************************************