mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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
|
#define OPM_PARALLELOVERLAPPINGILU0_HEADER_INCLUDED
|
||||||
|
|
||||||
#include <opm/common/Exceptions.hpp>
|
#include <opm/common/Exceptions.hpp>
|
||||||
|
#include <opm/common/ErrorMacros.hpp>
|
||||||
#include <dune/common/version.hh>
|
#include <dune/common/version.hh>
|
||||||
#include <dune/istl/preconditioner.hh>
|
#include <dune/istl/preconditioner.hh>
|
||||||
#include <dune/istl/paamg/smoother.hh>
|
#include <dune/istl/paamg/smoother.hh>
|
||||||
@ -355,8 +355,7 @@ public:
|
|||||||
const size_type lastRow = iEnd - 1;
|
const size_type lastRow = iEnd - 1;
|
||||||
if( iEnd != upper_.rows() )
|
if( iEnd != upper_.rows() )
|
||||||
{
|
{
|
||||||
std::abort();
|
OPM_THROW(std::logic_error,"ILU: number of lower and upper rows must be the same");
|
||||||
// OPM_THROW(std::logic_error,"ILU: lower and upper rows must be the same");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// lower triangular solve
|
// lower triangular solve
|
||||||
|
Loading…
Reference in New Issue
Block a user