Skip to content
Snippets Groups Projects
Commit 91875141 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Changed overly verbose messages to error messages

parent e1bd4a83
No related branches found
No related tags found
1 merge request!5Decoupling linear solvers from PDE solvers
......@@ -58,10 +58,10 @@ bool
SemiImplicitTimeStepper< Problem >::
init( const MeshPointer& mesh )
{
std::cout << "Setting up the linear system...";
if( ! this->problem->setupLinearSystem( this->matrix ) )
if( ! this->problem->setupLinearSystem( this->matrix ) ) {
std::cerr << "Failed to set up the linear system." << std::endl;
return false;
std::cout << " [ OK ]" << std::endl;
}
if( this->matrix.getData().getRows() == 0 || this->matrix.getData().getColumns() == 0 )
{
std::cerr << "The matrix for the semi-implicit time stepping was not set correctly." << std::endl;
......
......@@ -97,11 +97,11 @@ setup( const Config::ParameterContainer& parameters,
/***
* Set-up the initial condition
*/
std::cout << "Setting up the initial condition ... ";
typedef typename Problem :: DofVectorType DofVectorType;
if( ! this->problem->setInitialCondition( parameters, this->dofsPointer ) )
if( ! this->problem->setInitialCondition( parameters, this->dofsPointer ) ) {
std::cerr << "Failed to set up the initial condition." << std::endl;
return false;
std::cout << " [ OK ]" << std::endl;
}
/****
* Initialize the time discretisation
......
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