Skip to content

Commit 27f4172

Browse files
committed
allow only two matrix types in Pardiso: real nonsym and complex nonsym until
symmetric case is fixed
1 parent 2598c96 commit 27f4172

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/pardiso_lu.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ MKLPardisoLU(;valuetype::Type=Float64, indextype::Type=Int64,kwargs...)=MKLPardi
8080

8181
##########################################################################################
8282
function default_initialize!(fact::AbstractPardisoLU{Tv,Ti}, iparm,dparm,mtype) where {Tv, Ti}
83-
if !isnothing(mtype)
84-
my_mtype=mtype
85-
elseif Tv<:Complex
83+
# if !isnothing(mtype)
84+
# my_mtype=mtype fix this!
85+
# else
86+
87+
if Tv<:Complex
8688
my_mtype=Pardiso.COMPLEX_NONSYM
8789
else
8890
my_mtype=Pardiso.REAL_NONSYM

test/runtests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ end
372372
@test test_lu2(25,40,1,lufac=MKLPardisoLU())
373373
@test test_lu2(1000,1,1,lufac=MKLPardisoLU())
374374

375-
@test test_lu2(10,10,10,lufac=MKLPardisoLU(mtype=2))
376-
@test test_lu2(25,40,1,lufac=MKLPardisoLU(mtype=2))
377-
@test test_lu2(1000,1,1,lufac=MKLPardisoLU(mtype=2))
375+
# @test test_lu2(10,10,10,lufac=MKLPardisoLU(mtype=2))
376+
# @test test_lu2(25,40,1,lufac=MKLPardisoLU(mtype=2))
377+
# @test test_lu2(1000,1,1,lufac=MKLPardisoLU(mtype=2))
378378
end
379379

380380

@@ -388,9 +388,9 @@ if Pardiso.PARDISO_LOADED[]
388388
@test test_lu2(25,40,1,lufac=PardisoLU())
389389
@test test_lu2(1000,1,1,lufac=PardisoLU())
390390

391-
@test test_lu2(10,10,10,lufac=PardisoLU(mtype=2))
392-
@test test_lu2(25,40,1,lufac=PardisoLU(mtype=2))
393-
@test test_lu2(1000,1,1,lufac=PardisoLU(mtype=2))
391+
# @test test_lu2(10,10,10,lufac=PardisoLU(mtype=2))
392+
# @test test_lu2(25,40,1,lufac=PardisoLU(mtype=2))
393+
# @test test_lu2(1000,1,1,lufac=PardisoLU(mtype=2))
394394

395395
end
396396
end

0 commit comments

Comments
 (0)