From 5d24787081fb039c903849b797f731853dc46326 Mon Sep 17 00:00:00 2001 From: "roland.haas@physics.gatech.edu" Date: Tue, 7 Feb 2012 13:17:14 -0800 Subject: CarpetLib: wrap some debugging-only assert statement in an if block --- Carpet/CarpetLib/src/gdata.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Carpet/CarpetLib/src') 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, -- cgit v1.2.3