From 71ba123e3ce38768b68fdfeb8f1b9b5689331fcb Mon Sep 17 00:00:00 2001 From: DONNOT Benjamin Date: Tue, 23 Jul 2024 17:28:46 +0200 Subject: [PATCH] still debug windows CI --- src/linear_solvers/SparseLUSolver.cpp | 2 +- src/powerflow_algorithm/BaseDCAlgo.tpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/linear_solvers/SparseLUSolver.cpp b/src/linear_solvers/SparseLUSolver.cpp index 60b03f2..a127ee8 100644 --- a/src/linear_solvers/SparseLUSolver.cpp +++ b/src/linear_solvers/SparseLUSolver.cpp @@ -40,7 +40,7 @@ ErrorType SparseLULinearSolver::solve(const Eigen::SparseMatrix & J, } if(!stop){ RealVect Va = solver_.solve(b); - std::cout << "\tSparseLUSolver.cpp: solver_.info: " << solver_.info() << std::endl; // TODO DEBUG WINDOWS + std::cout << "\t\tSparseLUSolver.cpp: solver_.info: " << solver_.info() << std::endl; // TODO DEBUG WINDOWS if (solver_.info() != Eigen::Success) { err = ErrorType::SolverSolve; } diff --git a/src/powerflow_algorithm/BaseDCAlgo.tpp b/src/powerflow_algorithm/BaseDCAlgo.tpp index 10bdec5..4e2f443 100644 --- a/src/powerflow_algorithm/BaseDCAlgo.tpp +++ b/src/powerflow_algorithm/BaseDCAlgo.tpp @@ -101,7 +101,7 @@ bool BaseDCAlgo::compute_pf(const Eigen::SparseMatrix & // initialize the solver if needed if(need_factorize_){ - // std::cout << "\tneed to factorize\n"; + std::cout << "\t\t\tneed to factorize\n"; ErrorType status_init = _linear_solver.initialize(dcYbus_noslack_); if(status_init != ErrorType::NoError){ err_ = status_init; @@ -124,6 +124,7 @@ bool BaseDCAlgo::compute_pf(const Eigen::SparseMatrix & if(!Va_dc_without_slack.array().allFinite() || (Va_dc_without_slack.lpNorm() >= 1e6)){ // for convergence, all values should be finite // and it's not realistic if some Va are too high + std::cout << "\t\tBaseDCAlgo.tpp: Va_dc_without_slack: " << Va_dc_without_slack.lpNorm() << std::endl; // TODO DEBUG WINDOWS err_ = ErrorType::SolverSolve; V = CplxVect(); V_ = CplxVect();