aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,