Skip to content
Snippets Groups Projects
Commit 9f7b927c authored by Moritz Hanke's avatar Moritz Hanke
Browse files

minor fix in tests to allow compiling on cray

parent 28781df6
No related branches found
No related tags found
No related merge requests found
......@@ -142,15 +142,14 @@ CONTAINS
DOUBLE PRECISION, PARAMETER :: src_data(5, 5) = RESHAPE((/&
(DBLE(i), i = 1, 25)/), (/ 5, 5 /))
DOUBLE PRECISION :: dst_data(3, 5)
#ifndef __PGI
DOUBLE PRECISION, PARAMETER :: ref_dst_data(3, 5) &
= RESHAPE((/ ((DBLE((i + j)*MOD(j+1,2)-MOD(j,2)), i = 1,5,2), &
j = 0,20,5) /), (/ 3, 5 /))
#else
#if defined(__PGI) || defined(_CRAYFTN)
DOUBLE PRECISION :: ref_dst_data(3, 5)
ref_dst_data &
= RESHAPE((/ ((DBLE((i + j)*MOD(j+1,2)-MOD(j,2)), i = 1,5,2), &
j = 0,20,5) /), (/ 3, 5 /))
#else
DOUBLE PRECISION, PARAMETER :: ref_dst_data(3, 5) &
= RESHAPE((/ ((DBLE((i + j)*MOD(j+1,2)-MOD(j,2)), i = 1,5,2), j = 0,20,5) /), (/ 3, 5 /))
#endif
CALL check_redist(redist_repeat, src_data, dst_data, ref_dst_data)
END SUBROUTINE test_repeated_redist_ds1_with_gap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment