From a4ed801041fecbd4b89aaad943c5059297e4b5ab Mon Sep 17 00:00:00 2001 From: schnetter Date: Tue, 22 Jun 2004 12:25:32 +0000 Subject: Check the variables instead of the file names. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/IDFileADM/trunk@4 0b95e693-0e4f-0410-b80e-c7e9d0d71539 --- param.ccl | 2 +- src/IDFileADM_ParamCheck.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/param.ccl b/param.ccl index b119d8a..841ad94 100644 --- a/param.ccl +++ b/param.ccl @@ -20,4 +20,4 @@ EXTENDS KEYWORD initial_data shares: IO -USES STRING filereader_ID_files +USES STRING filereader_ID_vars diff --git a/src/IDFileADM_ParamCheck.c b/src/IDFileADM_ParamCheck.c index c5a1df7..40f9bab 100644 --- a/src/IDFileADM_ParamCheck.c +++ b/src/IDFileADM_ParamCheck.c @@ -27,14 +27,14 @@ void IDFileADM_ParamCheck (CCTK_ARGUMENTS) } nvars = CCTK_TraverseString - (filereader_ID_files, callback, variable_is_read, CCTK_GROUP_OR_VAR); + (filereader_ID_vars, callback, variable_is_read, CCTK_GROUP_OR_VAR); assert (nvars >= 0); if (CCTK_EQUALS(initial_lapse, "read from file")) { int const ialp = CCTK_VarIndex ("ADMBase::alp"); assert (ialp >= 0); if (! variable_is_read[ialp]) { - CCTK_PARAMWARN ("The lapse is initialised using the file reader, but the group ADMBase::lapse has not been scheduled to be read. Please set the parameter \"IO::filereader_ID_files\" accordingly."); + CCTK_PARAMWARN ("The lapse is initialised using the file reader, but the group ADMBase::lapse has not been scheduled to be read. Please set the parameter \"IO::filereader_ID_vars\" accordingly."); } } @@ -48,7 +48,7 @@ void IDFileADM_ParamCheck (CCTK_ARGUMENTS) if (! variable_is_read[ibetax] || ! variable_is_read[ibetay] || ! variable_is_read[ibetaz]) { - CCTK_PARAMWARN ("The shift is initialised using the file reader, but the group ADMBase::shift has not been scheduled to be read. Please set the parameter \"IO::filereader_ID_files\" accordingly."); + CCTK_PARAMWARN ("The shift is initialised using the file reader, but the group ADMBase::shift has not been scheduled to be read. Please set the parameter \"IO::filereader_ID_vars\" accordingly."); } } @@ -71,7 +71,7 @@ void IDFileADM_ParamCheck (CCTK_ARGUMENTS) || ! variable_is_read[igyy] || ! variable_is_read[igyz] || ! variable_is_read[igzz]) { - CCTK_PARAMWARN ("The metric is initialised using the file reader, but the group ADMBase::metric has not been scheduled to be read. Please set the parameter \"IO::filereader_ID_files\" accordingly."); + CCTK_PARAMWARN ("The metric is initialised using the file reader, but the group ADMBase::metric has not been scheduled to be read. Please set the parameter \"IO::filereader_ID_vars\" accordingly."); } } -- cgit v1.2.3