Skip to content

Commit 2c97277

Browse files
author
Damian Rouson
committed
co_broadcast_derived_type test format improvements
1 parent edfe958 commit 2c97277

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/tests/unit/collectives/co_broadcast_derived_type.f90

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ function f(x) result(y)
8181
message%j /= content%j, &
8282
message%k /= content%k, &
8383
message%l /= content%l, &
84-
message%r .neqv. content%r, &
85-
message%s .neqv. content%s, &
86-
message%t /= content%t, &
87-
any( message%u /= content%u ) &
84+
message%r .neqv. content%r, &
85+
message%s .neqv. content%s, &
86+
message%t /= content%t, &
87+
any( message%u /= content%u ) &
8888
] )
8989

9090
if ( any(failures) ) error stop "Test failed in non-allocatable block."
@@ -110,22 +110,22 @@ function f(x) result(y)
110110
string_array=[text], &
111111
scalar=(0.,1.), &
112112
vector=reshape( [integer::], [0]), &
113-
matrix=reshape( [.true.], [1,1]), &
113+
matrix=reshape( [.true.], [1,1]), &
114114
superstring=reshape([1,2,3,4], [2,1,2, 1,1,1, 1,1,1, 1,1,1, 1,1,1 ]) &
115115
)
116116

117117
if (me==sender) alloc_message = alloc_content
118118

119-
call co_broadcast(alloc_message,source_image=sender)
119+
call co_broadcast(alloc_message,source_image=sender)
120120

121-
associate( failures => [ &
122-
alloc_message%string /= alloc_content%string, &
123-
alloc_message%string_array /= alloc_content%string_array, &
124-
alloc_message%scalar /= alloc_content%scalar, &
125-
alloc_message%vector /= alloc_content%vector, &
126-
alloc_message%matrix .neqv. alloc_content%matrix, &
127-
alloc_message%superstring /= alloc_content%superstring &
128-
] )
121+
associate( failures => [ &
122+
alloc_message%string /= alloc_content%string, &
123+
alloc_message%string_array /= alloc_content%string_array, &
124+
alloc_message%scalar /= alloc_content%scalar, &
125+
alloc_message%vector /= alloc_content%vector, &
126+
alloc_message%matrix .neqv. alloc_content%matrix, &
127+
alloc_message%superstring /= alloc_content%superstring &
128+
] )
129129

130130
if ( any(failures) ) error stop "Test failed in allocatable block."
131131

0 commit comments

Comments
 (0)