diff options
author | hinder <hinder@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843> | 2011-02-23 14:23:41 +0000 |
---|---|---|
committer | hinder <hinder@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843> | 2011-02-23 14:23:41 +0000 |
commit | 12015476b4d52d663c90db26c9ef7fad394d2e17 (patch) | |
tree | 2820a5503e370fb8df47ea217995c7bd4c0a308d | |
parent | 484a45b907ffc45cb0d3f81bcb109fe3d07bede1 (diff) |
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
-rw-r--r-- | src/multipole.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |