aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/copy_3d_real8.F77
diff options
context:
space:
mode:
authorschnetter <>2003-02-24 16:43:00 +0000
committerschnetter <>2003-02-24 16:43:00 +0000
commitb39d59163852b03bed8ff1babde11248c0760b0b (patch)
treeae924a6b4657f956061a7ab492e9b46e971bf72d /Carpet/CarpetLib/src/copy_3d_real8.F77
parent69c57d13232ad89dd518ba86331a0110e64aab6e (diff)
Abort when the region is empty.
darcs-hash:20030224164310-07bb3-74aea71016b7064c9232175c804c72c3d697614e.gz
Diffstat (limited to 'Carpet/CarpetLib/src/copy_3d_real8.F77')
-rw-r--r--Carpet/CarpetLib/src/copy_3d_real8.F776
1 files changed, 5 insertions, 1 deletions
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