mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
ISTLSolverEbos: avoid use of sstream
This commit is contained in:
@@ -106,8 +106,9 @@ std::function<Vector()> getWeightsCalculator(const PropertyTree& prm,
|
||||
weightsCalculator = trueFunc;
|
||||
} else {
|
||||
OPM_THROW(std::invalid_argument,
|
||||
"Weights type " << weightsType << "not implemented for cpr."
|
||||
<< " Please use quasiimpes or trueimpes.");
|
||||
"Weights type " + weightsType +
|
||||
"not implemented for cpr."
|
||||
" Please use quasiimpes or trueimpes.");
|
||||
}
|
||||
}
|
||||
return weightsCalculator;
|
||||
|
||||
@@ -339,8 +339,8 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
||||
} else {
|
||||
// Pointers should not change
|
||||
if ( &(M.istlMatrix()) != matrix_ ) {
|
||||
OPM_THROW(std::logic_error, "Matrix objects are expected to be reused when reassembling!"
|
||||
<<" old pointer was " << matrix_ << ", new one is " << (&M.istlMatrix()) );
|
||||
OPM_THROW(std::logic_error,
|
||||
"Matrix objects are expected to be reused when reassembling!");
|
||||
}
|
||||
}
|
||||
rhs_ = &b;
|
||||
|
||||
Reference in New Issue
Block a user