Skip to content

Commit

Permalink
fix to LODF
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 28, 2023
1 parent fd84136 commit 90cf324
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lodf_calculations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ function _pardiso_single_LODF!(
ps = Pardiso.MKLPardisoSolver()
Pardiso.pardisoinit(ps)
Pardiso.set_iparm!(ps, 1, 1)
defaults = Pardiso.get_iparms(ps)
for (ix, v) in enumerate(defaults[2:end])
Pardiso.set_iparm!(ps, ix + 1, v)
end
Pardiso.set_iparm!(ps, 2, 2)
Pardiso.set_iparm!(ps, 59, 2)
Pardiso.set_iparm!(ps, 6, 1)
Pardiso.set_iparm!(ps, 12, 1)
#Pardiso.set_msglvl!(ps, Pardiso.MESSAGE_LEVEL_ON)
Pardiso.pardiso(
Expand All @@ -204,11 +204,7 @@ function _pardiso_single_LODF!(
ptdf_denominator_t,
)
Pardiso.set_phase!(ps, Pardiso.RELEASE_ALL)
Pardiso.pardiso(
ps,
A,
Float64[],
)
Pardiso.pardiso(ps)
return
end

Expand Down

0 comments on commit 90cf324

Please sign in to comment.