Skip to content

Commit

Permalink
Refactoring to fix issue #33
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Feb 18, 2022
1 parent f647bf6 commit f498501
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 563 deletions.
17 changes: 0 additions & 17 deletions src/GridapPardiso.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,27 +67,10 @@ function __init__()
end
end

include("constructors.jl")

include("bindings.jl")

include("PardisoParameters.jl")

getptr(S::SparseMatrixCSC) = S.colptr
getptr(S::SparseMatrixCSR) = S.rowptr
getptr(S::SymSparseMatrixCSR) = getptr(S.uppertrian)

getindices(S::SymSparseMatrixCSR) = colvals(S)
getindices(S::SparseMatrixCSC) = rowvals(S)
getindices(S::SparseMatrixCSR) = colvals(S)

hascolmajororder(::Type{<:SymSparseMatrixCSR}) = false
hascolmajororder(a::SymSparseMatrixCSR) = hascolmajororder(SymSparseMatrixCSR)
hascolmajororder(::Type{<:SparseMatrixCSC}) = true
hascolmajororder(a::SparseMatrixCSC) = hascolmajororder(SparseMatrixCSC)
hascolmajororder(a::SparseMatrixCSR) = false

include("LinearSolver.jl")


end # module
Loading

0 comments on commit f498501

Please sign in to comment.