diff options
author | yye00 <yye00@906471b6-c639-44d1-9ea0-3e3d6879f074> | 2004-08-12 22:17:36 +0000 |
---|---|---|
committer | yye00 <yye00@906471b6-c639-44d1-9ea0-3e3d6879f074> | 2004-08-12 22:17:36 +0000 |
commit | 26ca6cc5a91375b46089448806e65f54031da0ae (patch) | |
tree | 66512df840adc8cace743922bde3c2b665c56566 | |
parent | 53dcd2e5c6e80c475fd56c0aa2302217425eb18e (diff) |
assert fix
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/SymBase/trunk@15 906471b6-c639-44d1-9ea0-3e3d6879f074
-rw-r--r-- | doc/documentation.tex | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/documentation.tex b/doc/documentation.tex index 8e1808b..b0fcbf8 100644 --- a/doc/documentation.tex +++ b/doc/documentation.tex @@ -252,7 +252,7 @@ The code to find out which boundaries should have a physical boundary condition applied might look as follows: \begin{verbatim} -#include <assert.h> +#include "cctk.h" #include "util_Table.h" CCTK_INT symtable; @@ -261,10 +261,12 @@ int face; int ierr; symtable = SymmetryTableHandleForGrid (cctkGH); -assert (symtable>=0); +if (symtable<0) + CCTK_VWarn(0, __LINE__, __FILE__, "Thorn_Name", "symtable is out of bounds"); ierr = Util_TableGetIntArray (symtable, 6, symbnd, "symmetry_handle"); -assert (ierr==6); +if (ierr!=6) + CCTK_VWarn(0, __LINE__, __FILE__, "Thorn_Name", "Util_TableGetIntArray returned error"); for (face=0; face<6; ++face) { if (cctk_bbox[face] && symbnd[face]<0) { |