From 49c9dbe4be2afce2c6dbc06fdad52d7e97ad2865 Mon Sep 17 00:00:00 2001 From: hinder Date: Fri, 10 Sep 2010 18:51:58 +0000 Subject: 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 --- src/multipole.cc | 17 +---------------- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3