Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 422c4f6a authored by frey_m's avatar frey_m
Browse files

Use *gmsg for messages

parent 6b030baa
No related branches found
No related tags found
1 merge request!32Master
......@@ -7,6 +7,8 @@
#include <string>
extern Inform* gmsg;
/// Interface to Amesos2 solvers of the Trilinos package
template <class Level>
class Amesos2BottomSolver : public BottomSolver<Teuchos::RCP<amr::matrix_t>,
......
......@@ -28,8 +28,7 @@ void Amesos2BottomSolver<Level>::setOperator(const Teuchos::RCP<matrix_t>& A,
try {
solver_mp = Amesos2::create<matrix_t, mv_t>(solvertype_m, A);
} catch(const std::invalid_argument& ex) {
//TODO change to gmsg IPPL when built-in in OPAL
std::cerr << ex.what() << std::endl;
*gmsg << ex.what() << endl;
}
solver_mp->symbolicFactorization();
......
#include "Ippl.h"
#include "Utilities/OpalException.h"
extern Inform* gmsg;
template <class Level>
BelosBottomSolver<Level>::BelosBottomSolver(std::string solvertype,
const std::shared_ptr<prec_t>& prec_p)
......@@ -39,10 +41,9 @@ void BelosBottomSolver<Level>::solve(const Teuchos::RCP<mv_t>& x,
Belos::ReturnType ret = solver_mp->solve();
if ( ret != Belos::Converged ) {
//TODO When put into OPAL: Replace with gmsg
std::cerr << "Warning: Bottom solver not converged. Achieved tolerance"
<< " after " << solver_mp->getNumIters() << " iterations is "
<< solver_mp->achievedTol() << "." << std::endl;
*gmsg << "Warning: Bottom solver not converged. Achieved tolerance"
<< " after " << solver_mp->getNumIters() << " iterations is "
<< solver_mp->achievedTol() << "." << endl;
}
// undo sign change
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment