[Commits] [svn:einsteintoolkit] Multipole/trunk/src/ (Rev. 75)

ian.hinder at aei.mpg.de ian.hinder at aei.mpg.de
Wed Feb 23 08:23:42 CST 2011


User: hinder
Date: 2011/02/23 08:23 AM

Modified:
 /trunk/src/
  multipole.cc

Log:
 Correct error check in CCTK_TraverseString
 
 Previously the code would abort if there were no variables to decompose

File Changes:

Directory: /trunk/src/
======================

File [modified]: multipole.cc
Delta lines: +1 -1
===================================================================
--- trunk/src/multipole.cc	2011-01-03 18:50:53 UTC (rev 74)
+++ trunk/src/multipole.cc	2011-02-23 14:23:41 UTC (rev 75)
@@ -89,7 +89,7 @@
   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;
 }



More information about the Commits mailing list