aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhinder <hinder@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843>2010-09-10 18:51:58 +0000
committerhinder <hinder@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843>2010-09-10 18:51:58 +0000
commit49c9dbe4be2afce2c6dbc06fdad52d7e97ad2865 (patch)
treee22b7ef8493dfba5052d2be5826272684a7a04ee
parentd7d60ca1b83ef02c1b8f78ac2709c3f4a7190583 (diff)
Remove default fallback value for "variables" string
Now if no variables are supplied, none will be decomposed git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/Multipole/trunk@66 4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843
-rw-r--r--src/multipole.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/multipole.cc b/src/multipole.cc
index 6f8848c..e0e51e0 100644
--- a/src/multipole.cc
+++ b/src/multipole.cc
@@ -83,22 +83,7 @@ static void parse_variables_string(const char *var_string, variable_desc v[max_v
vars.n_vars = 0;
vars.vars = v;
- const char *actual_var_string = strlen(var_string) == 0 ?
- "WeylScal4::Psi4r{sw=-2 cmplx=\'WeylScal4::Psi4i\' name=\'psi4\'}" :
- var_string;
-
- if (strlen(var_string) == 0)
- {
- static bool have_warned = false;
- if (!have_warned)
- {
- CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "WARNING: No Multipole::variables string has been specified. For compatibility, the current default is to use \"%s\" but in future, this default will change to \"\". Please update your parameter files to include this new parameter.", actual_var_string);
- have_warned = true;
- }
- }
-
- int ierr = CCTK_TraverseString(actual_var_string, fill_variable, &vars, CCTK_GROUP_OR_VAR);
+ int ierr = CCTK_TraverseString(var_string, fill_variable, &vars, CCTK_GROUP_OR_VAR);
assert(ierr > 0);
*n_variables = vars.n_vars;