From 12015476b4d52d663c90db26c9ef7fad394d2e17 Mon Sep 17 00:00:00 2001 From: hinder Date: Wed, 23 Feb 2011 14:23:41 +0000 Subject: Correct error check in CCTK_TraverseString Previously the code would abort if there were no variables to decompose git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/Multipole/trunk@75 4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843 --- src/multipole.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multipole.cc b/src/multipole.cc index 8a6a6ea..cc8111e 100644 --- a/src/multipole.cc +++ b/src/multipole.cc @@ -89,7 +89,7 @@ static void parse_variables_string(const string &var_string, variable_desc v[max vars.vars = v; int ierr = CCTK_TraverseString(var_string.c_str(), fill_variable, &vars, CCTK_GROUP_OR_VAR); - assert(ierr > 0); + assert(ierr >= 0); *n_variables = vars.n_vars; } -- cgit v1.2.3