Printing messages only in verbose.

This commit is contained in:
iasonmanolas 2021-03-17 12:02:06 +02:00
parent 390f45a58a
commit b5bc25df50
1 changed files with 4 additions and 2 deletions

View File

@ -413,9 +413,9 @@ Summary solve(const Job &job, const std::vector<BC> &BCs,
loadForces(force_vec, forces);
}
#ifdef DEBUG
Eigen::MatrixXd KgDense(Kg);
// Eigen::MatrixXd KgDense(Kg);
// std::cout << KgDense << std::endl;
Eigen::VectorXd forcesVectorDense(force_vec);
// Eigen::VectorXd forcesVectorDense(force_vec);
// std::cout << forcesVectorDense << std::endl;
#endif
// compress global stiffness matrix since all non-zero values have been added.
@ -464,7 +464,9 @@ Summary solve(const Job &job, const std::vector<BC> &BCs,
// Compute the numerical factorization
start_time = std::chrono::high_resolution_clock::now();
solver.factorize(Kg);
if(options.verbose){
std::cout << solver.lastErrorMessage() << std::endl;
}
assert(solver.info() == Eigen::Success);
end_time = std::chrono::high_resolution_clock::now();