diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-09-25 22:01:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-09-25 22:01:00 +0000 |
commit | 7399749259776e9c0ca4c2112db5e9132c3a40bc (patch) | |
tree | ddddc40e06d6993e774ef10dda05b48f90f12dbc /Carpet/CarpetIOBasic/src | |
parent | a35f72ee5b753285250625af4b56deae375cb403 (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/src')
-rw-r--r-- | Carpet/CarpetIOBasic/src/iobasic.cc | 7 |
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; |