aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp2
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-10-09 22:51:35 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-10-09 22:51:35 -0500
commita47b3354322c20a2b55d085c3edf1ce24e862bf2 (patch)
tree621fa9fda6ec46bb4d4fa02f8bb64ea88f199738 /Carpet/CarpetInterp2
parentf500fa45fe93a8451a5ff72a30d2dee81dcaa2e4 (diff)
CarpetInterp2: Allow NULL pointers for empty arrays
Diffstat (limited to 'Carpet/CarpetInterp2')
-rw-r--r--Carpet/CarpetInterp2/src/fasterp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc
index 00a667f02..740bb9827 100644
--- a/Carpet/CarpetInterp2/src/fasterp.cc
+++ b/Carpet/CarpetInterp2/src/fasterp.cc
@@ -1054,7 +1054,7 @@ namespace CarpetInterp2 {
}
assert (dyndata.activetimelevels > tl);
#endif
- assert (values.AT(v) != NULL);
+ assert (recv_descr.npoints == 0 or values.AT(v) != NULL);
}
MPI_Comm & comm_world = * (MPI_Comm *) GetMPICommWorld (cctkGH);