Skip to content

Commit

Permalink
update pardiso calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 28, 2023
1 parent 6fa823c commit 10781b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lodf_calculations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,11 @@ function _pardiso_sequential_LODF!(
ptdf_denominator_t::Matrix{Float64},
chunk_size::Int = DEFAULT_LODF_CHUNK_SIZE,
)
@info "Line Count too large for single compute using Pardiso. Employing Sequential Calulations using a chunk_size=$(chunk_size)"
linecount = size(lodf_t, 1)
@assert LinearAlgebra.ishermitian(A)
ps = Pardiso.MKLPardisoSolver()
Pardiso.set_matrixtype!(ps, Pardiso.REAL_SYM_POSDEF)
Pardiso.set_matrixtype!(ps, Pardiso.REAL_SYM)

Check warning on line 141 in src/lodf_calculations.jl

View check run for this annotation

Codecov / codecov/patch

src/lodf_calculations.jl#L137-L141

Added lines #L137 - L141 were not covered by tests
#Pardiso.set_msglvl!(ps, Pardiso.MESSAGE_LEVEL_ON)
Pardiso.set_phase!(ps, Pardiso.ANALYSIS)
Pardiso.pardiso(

Check warning on line 144 in src/lodf_calculations.jl

View check run for this annotation

Codecov / codecov/patch

src/lodf_calculations.jl#L143-L144

Added lines #L143 - L144 were not covered by tests
Expand Down Expand Up @@ -170,8 +171,6 @@ function _pardiso_sequential_LODF!(
lodf_t[:, i_count:edge] .= tmp
i_count = edge + 1
end
Pardiso.set_phase!(ps, Pardiso.RELEASE_ALL)
Pardiso.pardiso(ps)
return

Check warning on line 174 in src/lodf_calculations.jl

View check run for this annotation

Codecov / codecov/patch

src/lodf_calculations.jl#L171-L174

Added lines #L171 - L174 were not covered by tests
end

Expand Down

0 comments on commit 10781b8

Please sign in to comment.