Skip to content

Commit a34ec34

Browse files
authored
Merge pull request #66 from gridap/using_csr_in_test
Using CSR format in PoissonTests.jl
2 parents f754e7a + e6f96a4 commit a34ec34

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ GridapDistributed = "0.2"
2121
MPI = "0.14, 0.15, 0.16, 0.17, 0.18, 0.19"
2222
PETSc_jll = "3.13"
2323
PartitionedArrays = "0.2.4"
24-
SparseMatricesCSR = "0.6.1"
24+
SparseMatricesCSR = "0.6.6"
2525
julia = "1.3"
2626

2727
[extras]

test/PoissonTests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using SparseMatricesCSR
12
using Gridap
23
using Gridap.Algebra
34
using Gridap.FESpaces
@@ -35,7 +36,8 @@ function main(parts)
3536

3637
a(u,v) = ( (v)(u) )dΩ
3738
l(v) = ( v*f )dΩ + ( v*g )dΓn
38-
op = AffineFEOperator(a,l,U,V)
39+
assem=SparseMatrixAssembler(SparseMatrixCSR{0,PetscScalar,PetscInt},Vector{Float64},U,V)
40+
op = AffineFEOperator(a,l,U,V,assem)
3941

4042
ls = PETScLinearSolver()
4143
fels = LinearFESolver(ls)

0 commit comments

Comments
 (0)