@@ -42,7 +42,7 @@ subroutine one(lb1, lb2)
4242 end if
4343 sync all
4444 if (this_image()==1 ) then
45- if (any (a /= c)) call abort()
45+ if (any (a /= c)) error stop " ARRAY = SCALAR failed in get_array_test "
4646 endif
4747
4848 ! Whole array: ARRAY = ARRAY
@@ -59,7 +59,7 @@ subroutine one(lb1, lb2)
5959 print * , a
6060 print * , c
6161 ! FIXME: Without the print lines above, it always fails. Why?
62- call abort()
62+ error stop " ARRAY = ARRAY failed in get_array_test "
6363 end if
6464 endif
6565
@@ -98,7 +98,7 @@ subroutine one(lb1, lb2)
9898 print * , this_image(), ' : ' , a
9999 print * , this_image(), ' : ' , c
100100 ! FIXME: Without the print lines above, it always fails. Why?
101- call abort()
101+ error stop " scalar assignment failed in get_array_test "
102102 end if
103103 endif
104104 ! Array sections with different ranges and pos/neg strides
@@ -130,7 +130,7 @@ subroutine one(lb1, lb2)
130130 print * , a
131131 print * , c
132132 print * , a- c
133- call abort()
133+ error stop " array sections with ranges and strides failed in get_array_test "
134134 endif
135135 end if
136136 ! ARRAY = ARRAY
@@ -155,7 +155,7 @@ subroutine one(lb1, lb2)
155155 print * , a
156156 print * , c
157157 print * , a- c
158- call abort()
158+ error stop " array sections with ranges and strides failed in get_array_test "
159159 endif
160160 end if
161161 end do
@@ -189,7 +189,7 @@ subroutine two()
189189 sync all
190190 if (this_image() == num_images()) then
191191 if (any (a /= caf)) &
192- call abort()
192+ error stop " Array = scalar failed in subroutine two get_array_test "
193193 end if
194194
195195 ! Whole array: ARRAY = ARRAY
@@ -203,7 +203,7 @@ subroutine two()
203203 sync all
204204 if (this_image() == num_images()) then
205205 if (any (a /= caf)) &
206- call abort()
206+ error stop " Array = array failed in subroutine two get_array_test "
207207 end if
208208
209209 ! Scalar assignment
@@ -235,7 +235,7 @@ subroutine two()
235235 sync all
236236 if (this_image() == num_images()) then
237237 if (any (a /= caf)) &
238- call abort()
238+ error stop " scalar assignment failed in subroutine two get_array_test "
239239 end if
240240
241241 ! Array sections with different ranges and pos/neg strides
@@ -280,7 +280,7 @@ subroutine two()
280280 print * , a
281281 print * , caf
282282 print * , a- caf
283- call abort()
283+ error stop " arrays with ranges and strides failed sub. two get_array_test failed "
284284 endif
285285 end if
286286 end do
@@ -314,7 +314,7 @@ subroutine three()
314314 sync all
315315 if (this_image() == num_images()) then
316316 if (any (a /= caf)) &
317- call abort()
317+ error stop " Array = scalar subroutine three get_array_test failed "
318318 end if
319319
320320 ! Whole array: ARRAY = ARRAY
@@ -328,7 +328,7 @@ subroutine three()
328328 sync all
329329 if (this_image() == num_images()) then
330330 if (any (a /= caf)) &
331- call abort()
331+ error stop " Array = array subroutine three get_array_test failed "
332332 end if
333333
334334 ! Scalar assignment
@@ -360,7 +360,7 @@ subroutine three()
360360 sync all
361361 if (this_image() == num_images()) then
362362 if (any (a /= caf)) &
363- call abort()
363+ error stop " scalar assignment subroutine three get_array_test failed "
364364 end if
365365
366366 ! Array sections with different ranges and pos/neg strides
@@ -405,7 +405,7 @@ subroutine three()
405405 print * , a
406406 print * , caf
407407 print * , a- caf
408- call abort()
408+ error stop " range stride in subroutine three get_array_test failed "
409409 endif
410410 end if
411411 end do
0 commit comments