Skip to content

Commit add5a11

Browse files
author
Alessandro Fanfarillo
committed
Allocating destination variables for main co_broadcast_allocatable_components test
1 parent 523b45e commit add5a11

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/tests/unit/collectives/co_broadcast_allocatable_components.f90

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ program main
2727
vector=reshape( [integer::], [0]), &
2828
matrix=reshape( [.true.], [1,1]), &
2929
superstring=reshape([1,2,3,4], [2,1,2, 1,1,1, 1,1,1, 1,1,1, 1,1,1 ]) &
30-
)
30+
)
3131

32-
if (me==sender) alloc_message = alloc_content
32+
alloc_message = alloc_content
33+
34+
if(me /= sender) then
35+
alloc_message%vector = 0
36+
alloc_message%matrix = .false.
37+
alloc_message%superstring = 0
38+
endif
3339

3440
call co_broadcast(alloc_message,source_image=sender)
3541

0 commit comments

Comments
 (0)