aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroland haas <roland.haas@physics.gatech.edu>2012-02-07 13:17:14 -0800
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:01 +0100
commit7c53b327168e1310367a6a896fb2a25cd32fdd5c (patch)
tree1cf1dbaac6ec568ba734b19498083bb3578f56f2
parente38b028ea97defd8d478e90c6e325573b3326faf (diff)
CarpetLib: wrap some debugging-only assert statement in an if block
-rw-r--r--Carpet/CarpetLib/src/gdata.cc8
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,