Skip to content

Commit

Permalink
print PHASE and adding log for pardiso-mkl solve
Browse files Browse the repository at this point in the history
  • Loading branch information
svigerske committed Dec 9, 2024
1 parent db0e648 commit 264b1c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Algorithm/LinearSolvers/IpPardisoMKLSolverInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ ESymSolverStatus PardisoMKLSolverInterface::Factorization(
PHASE = 11;

Jnlst().Printf(J_DETAILED, J_LINEAR_ALGEBRA,
"Calling Pardiso for symbolic factorization.\n");
"Calling Pardiso for symbolic factorization (PHASE=%d).\n", PHASE);
IPOPT_LAPACK_FUNC(pardiso, PARDISO)(PT_, &MAXFCT_, &MNUM_, &MTYPE_,
&PHASE, &N, a_, ia, ja, &PERM,
&NRHS, IPARM_, &MSGLVL_, &B, &X, &ERROR, DPARM_);
Expand Down Expand Up @@ -509,7 +509,7 @@ ESymSolverStatus PardisoMKLSolverInterface::Factorization(
IpData().TimingStats().LinearSystemFactorization().Start();
}
Jnlst().Printf(J_MOREDETAILED, J_LINEAR_ALGEBRA,
"Calling Pardiso for factorization.\n");
"Calling Pardiso for factorization (PHASE=%d).\n", PHASE);
// Dump matrix to file, and count number of solution steps.
if( HaveIpData() )
{
Expand Down Expand Up @@ -642,6 +642,9 @@ ESymSolverStatus PardisoMKLSolverInterface::Solve(
Index NRHS = nrhs;
Number* X = new Number[nrhs * dim_];

Jnlst().Printf(J_MOREDETAILED, J_LINEAR_ALGEBRA,
"Calling Pardiso to solve (PHASE=%d).\n", PHASE);

Number* ORIG_RHS = new Number[nrhs * dim_];
Index ERROR;
// Initialize solution with zero and save right hand side
Expand Down

0 comments on commit 264b1c7

Please sign in to comment.