diff options
author | roland.haas@physics.gatech.edu <roland.haas@physics.gatech.edu> | 2012-02-07 13:17:14 -0800 |
---|---|---|
committer | roland.haas@physics.gatech.edu <roland.haas@physics.gatech.edu> | 2012-02-07 13:17:14 -0800 |
commit | 5d24787081fb039c903849b797f731853dc46326 (patch) | |
tree | 814ee291f4f9773e9dc3ca0f1b543a12735b5db9 /Carpet/CarpetLib/src | |
parent | f7fe952894211c0ab5dad234e136ec7f758c97fa (diff) |
CarpetLib: wrap some debugging-only assert statement in an if block
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r-- | Carpet/CarpetLib/src/gdata.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/gdata.cc b/Carpet/CarpetLib/src/gdata.cc index 14efde95e..ba99448cb 100644 --- a/Carpet/CarpetLib/src/gdata.cc +++ b/Carpet/CarpetLib/src/gdata.cc @@ -312,9 +312,11 @@ transfer_from (comm_state & state, src->make_typed (src->varindex, src->cent, src->transport_operator); buf->allocate (srcbox, srcproc, sendbuf, sendbufsize); - assert (buf->extent().is_aligned_with (this->extent())); - assert (srcbox.is_aligned_with (this->extent())); - assert (dstbox.is_aligned_with (buf->extent())); + if (is_dst) { + assert (buf->extent().is_aligned_with (this->extent())); + assert (srcbox.is_aligned_with (this->extent())); + assert (dstbox.is_aligned_with (buf->extent())); + } buf->copy_from_innerloop (srcs.AT(tl), srcbox, srcbox, NULL); delete buf; state.commit_send_space (src->c_datatype(), dstproc, |