mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
include ErrorMacros.hpp to safely make use of OPM_THROW (and not abort)
This commit is contained in:
parent
f381336dff
commit
a82598abe7
@ -21,7 +21,7 @@
|
||||
#define OPM_PARALLELOVERLAPPINGILU0_HEADER_INCLUDED
|
||||
|
||||
#include <opm/common/Exceptions.hpp>
|
||||
|
||||
#include <opm/common/ErrorMacros.hpp>
|
||||
#include <dune/common/version.hh>
|
||||
#include <dune/istl/preconditioner.hh>
|
||||
#include <dune/istl/paamg/smoother.hh>
|
||||
@ -355,8 +355,7 @@ public:
|
||||
const size_type lastRow = iEnd - 1;
|
||||
if( iEnd != upper_.rows() )
|
||||
{
|
||||
std::abort();
|
||||
// OPM_THROW(std::logic_error,"ILU: lower and upper rows must be the same");
|
||||
OPM_THROW(std::logic_error,"ILU: number of lower and upper rows must be the same");
|
||||
}
|
||||
|
||||
// lower triangular solve
|
||||
|
Loading…
Reference in New Issue
Block a user