aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOBasic
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-09-25 22:01:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-09-25 22:01:00 +0000
commitc9b7243f3d7fa46e216e71d3c8c21ea6136b54ae (patch)
treeddddc40e06d6993e774ef10dda05b48f90f12dbc /Carpet/CarpetIOBasic
parent52756eabda6c8ba2ad0ab85e951e00782915395b (diff)
CarpetIOBasic: Allow calling CarpetIOBasic from CCTK_OutputGH
Avoid an assertion failure if CarpetIOBasic output is called from CCTK_OutputGH. darcs-hash:20060925220145-dae7b-97bf43e06092bf01ccb6f9c5563a00714447d7fe.gz
Diffstat (limited to 'Carpet/CarpetIOBasic')
-rw-r--r--Carpet/CarpetIOBasic/src/iobasic.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/Carpet/CarpetIOBasic/src/iobasic.cc b/Carpet/CarpetIOBasic/src/iobasic.cc
index c6179a938..48192a7ba 100644
--- a/Carpet/CarpetIOBasic/src/iobasic.cc
+++ b/Carpet/CarpetIOBasic/src/iobasic.cc
@@ -624,9 +624,10 @@ namespace CarpetIOBasic {
- assert (last_output != cctk_iteration);
-
- assert (last_output < cctk_iteration);
+ // These should be true in general, but may be false if
+ // CCTK_OutputGH is called explicitly:
+ // assert (last_output != cctk_iteration);
+ // assert (last_output < cctk_iteration);
// Should be output during this iteration
return true;