diff options
author | roland haas <roland.haas@physics.gatech.edu> | 2012-02-07 13:17:14 -0800 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:01 +0100 |
commit | 7c53b327168e1310367a6a896fb2a25cd32fdd5c (patch) | |
tree | 1cf1dbaac6ec568ba734b19498083bb3578f56f2 /Carpet/CarpetLib/src/gdata.cc | |
parent | e38b028ea97defd8d478e90c6e325573b3326faf (diff) |
CarpetLib: wrap some debugging-only assert statement in an if block
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.cc')
-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, |