Skip to content

Commit 003cb1c

Browse files
committed
fix 1.6
1 parent e4d871b commit 003cb1c

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: linux-macos-windows
1+
name: ci
22
on:
33
pull_request:
44
branches:
@@ -17,20 +17,20 @@ jobs:
1717
version:
1818
- '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
1919
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20-
- 'nightly' # currently fails for LinearSolve
20+
- 'nightly'
2121
os:
2222
- ubuntu-latest
2323
- macos-latest
2424
- windows-latest
2525
arch:
2626
- x64
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2929
- uses: julia-actions/setup-julia@v1
3030
with:
3131
version: ${{ matrix.version }}
3232
arch: ${{ matrix.arch }}
33-
- uses: actions/cache@v1
33+
- uses: actions/cache@v4
3434
env:
3535
cache-name: cache-artifacts
3636
with:
@@ -43,14 +43,12 @@ jobs:
4343
- uses: julia-actions/julia-buildpkg@v1
4444
- uses: julia-actions/julia-runtest@v1
4545
- uses: julia-actions/julia-processcoverage@v1
46-
- uses: codecov/codecov-action@v1
47-
with:
48-
file: lcov.info
46+
- uses: codecov/codecov-action@v3
4947
docs:
5048
name: Documentation
5149
runs-on: ubuntu-latest
5250
steps:
53-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v4
5452
- uses: julia-actions/setup-julia@v1
5553
with:
5654
version: '1'

src/matrix/sparsematrixcsc.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ end
9595
Return boolean vector marking Dirichlet nodes, known by `A[i,i]>=penalty`
9696
"""
9797
function mark_dirichlet(A::SparseMatrixCSC; penalty=1.0e20)
98-
(;colptr,rowval,nzval,n)=A
98+
colptr=A.colptr
99+
rowval=A.rowval
100+
nzval=A.nzval
101+
n=A.n
99102
dirichlet=zeros(Bool,n)
100103
for i=1:n
101104
for j=colptr[i]:colptr[i+1]-1
@@ -119,7 +122,10 @@ for a node `i` marked as Dirichlet.
119122
Returns A.
120123
"""
121124
function eliminate_dirichlet!(A::SparseMatrixCSC,dirichlet)
122-
(;colptr,rowval,nzval,n)=A
125+
colptr=A.colptr
126+
rowval=A.rowval
127+
nzval=A.nzval
128+
n=A.n
123129
for i=1:n
124130
# set off-diagonal column indiced to zero
125131
if !iszero(dirichlet[i])
@@ -154,7 +160,6 @@ for a node `i` marked as Dirichlet.
154160
Returns B.
155161
"""
156162
function eliminate_dirichlet(A::SparseMatrixCSC,dirichlet)
157-
(;m,n,colptr,rowval,nzval)=A
158-
B=SparseMatrixCSC(m,n,colptr,rowval,copy(nzval))
163+
B=SparseMatrixCSC(A.m,A.n,A.colptr,A.rowval,copy(A.nzval))
159164
eliminate_dirichlet!(B,dirichlet)
160165
end

0 commit comments

Comments
 (0)