Skip to content

Commit e6f8a88

Browse files
committed
remove SparseDiffTools as [deps] since it is only used in testing; update test
1 parent eed0583 commit e6f8a88

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
1010
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
1111
PETSc_jll = "8fa3689e-f0b9-5420-9873-adf6ccf46f2d"
1212
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
13-
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
1413

1514
[compat]
1615
MPI = "0.20"

test/old_test.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ PETSc.initialize(PETSc.petsclibs[1])
7272

7373

7474
function F!(cfx, cx, a)
75-
x = PETSc.unsafe_localarray(Float64,cx, write=false)
76-
fx = PETSc.unsafe_localarray(Float64,cfx,write=true)
75+
x = PETSc.unsafe_localarray(Float64,cx, write=false, read=true)
76+
fx = PETSc.unsafe_localarray(Float64,cfx,write=true, read=true)
7777
fx[1] = x[1]^2 + x[1]*x[2] - 3
7878
fx[2] = x[1]*x[2] + x[2]^2 - 6
7979
Base.finalize(x)
@@ -83,7 +83,7 @@ PETSc.initialize(PETSc.petsclibs[1])
8383
J = zeros(2,2)
8484
PJ = PETSc.MatSeqDense(J)
8585
function updateJ!(cx, args...)
86-
x = PETSc.unsafe_localarray(Float64,cx, write=false)
86+
x = PETSc.unsafe_localarray(Float64,cx, write=false, read=true)
8787
J[1,1] = 2x[1] + x[2]
8888
J[1,2] = x[1]
8989
J[2,1] = x[2]

0 commit comments

Comments
 (0)