From b39d59163852b03bed8ff1babde11248c0760b0b Mon Sep 17 00:00:00 2001 From: schnetter <> Date: Mon, 24 Feb 2003 16:43:00 +0000 Subject: Abort when the region is empty. darcs-hash:20030224164310-07bb3-74aea71016b7064c9232175c804c72c3d697614e.gz --- Carpet/CarpetLib/src/copy_3d_real8.F77 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetLib/src/copy_3d_real8.F77') diff --git a/Carpet/CarpetLib/src/copy_3d_real8.F77 b/Carpet/CarpetLib/src/copy_3d_real8.F77 index 8a07051dc..230814c04 100644 --- a/Carpet/CarpetLib/src/copy_3d_real8.F77 +++ b/Carpet/CarpetLib/src/copy_3d_real8.F77 @@ -1,5 +1,5 @@ c -*-Fortran-*- -c $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/copy_3d_real8.F77,v 1.4 2001/12/09 16:43:08 schnetter Exp $ +c $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/copy_3d_real8.F77,v 1.5 2003/02/24 17:43:10 schnetter Exp $ #include "cctk.h" @@ -49,6 +49,10 @@ c bbox(:,3) is stride $ .or. regbbox(d,2).gt.dstbbox(d,2)) then call CCTK_WARN (0, "Internal error: region extent is not contained in array extent") end if + if (regbbox(d,1).gt.regbbox(d,2)) then +c This could be handled, but is likely to point to an error elsewhere + call CCTK_WARN (0, "Internal error: region extent is empty") + end if end do if (srciext.ne.(srcbbox(1,2)-srcbbox(1,1))/srcbbox(1,3)+1 -- cgit v1.2.3