Skip to content

Commit ea9a53c

Browse files
committed
Fixing test
1 parent 28410f3 commit ea9a53c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/fdm_example.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,15 @@ function fdm_example(distribute)
8686
# and the data distribution described by rows and cols.
8787
tic!(t)
8888
tentative_col_partition = row_partition
89-
A = psparse(I,J,V,row_partition,tentative_col_partition,discover_rows=false) |> fetch
89+
A = psparse(I,J,V,row_partition,tentative_col_partition) |> fetch
90+
toc!(t,"A")
91+
cols = axes(A,2)
92+
93+
# The same but, avoiding any communication in psparse
94+
tic!(t)
95+
J_owner = find_owner(row_partition,J)
96+
col_partition = map(union_ghost,row_partition,J,J_owner)
97+
A = psparse(I,J,V,row_partition,col_partition;assembled=true) |> fetch
9098
toc!(t,"A")
9199
cols = axes(A,2)
92100

0 commit comments

Comments
 (0)