use exception classes from opm-common

This commit is contained in:
Arne Morten Kvarving
2022-12-13 12:53:01 +01:00
parent 90df7fbe4b
commit c57e37fffe
21 changed files with 79 additions and 68 deletions

View File

@@ -58,7 +58,6 @@
#include <opm/material/common/MathToolbox.hpp>
#include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Exceptions.hpp>
#include <dune/common/version.hh>
#include <dune/common/fvector.hh>
@@ -74,6 +73,7 @@
#include <limits>
#include <list>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>

View File

@@ -31,13 +31,13 @@
#include "fvbaseproperties.hh"
#include "linearizationtype.hh"
#include <opm/common/Exceptions.hpp>
#include <opm/models/parallel/gridcommhandles.hh>
#include <opm/models/parallel/threadmanager.hh>
#include <opm/models/parallel/threadedentityiterator.hh>
#include <opm/models/discretization/common/baseauxiliarymodule.hh>
#include <opm/material/common/Exceptions.hpp>
#include <dune/common/version.hh>
#include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
@@ -219,7 +219,7 @@ public:
succeeded = gridView_().comm().min(succeeded);
if (!succeeded)
throw NumericalIssue("A process did not succeed in linearizing the system");
throw NumericalProblem("A process did not succeed in linearizing the system");
}
void finalize()
@@ -252,7 +252,7 @@ public:
succeeded = comm.min(succeeded);
if (!succeeded)
throw NumericalIssue("linearization of an auxiliary equation failed");
throw NumericalProblem("linearization of an auxiliary equation failed");
}
}

View File

@@ -33,10 +33,11 @@
#include "fvbaseproperties.hh"
#include "linearizationtype.hh"
#include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Exceptions.hpp>
#include <dune/common/fvector.hh>
#include <stdexcept>
namespace Opm {
/*!

View File

@@ -31,9 +31,10 @@
#include "fvbaseproperties.hh"
#include "linearizationtype.hh"
#include <opm/common/Exceptions.hpp>
#include <opm/models/discretization/common/baseauxiliarymodule.hh>
#include <opm/material/common/Exceptions.hpp>
#include <opm/grid/utility/SparseTable.hpp>
#include <opm/input/eclipse/EclipseState/Grid/FaceDir.hpp>
@@ -202,7 +203,7 @@ public:
succeeded = gridView_().comm().min(succeeded);
if (!succeeded)
throw NumericalIssue("A process did not succeed in linearizing the system");
throw NumericalProblem("A process did not succeed in linearizing the system");
}
void finalize()
@@ -235,7 +236,7 @@ public:
succeeded = comm.min(succeeded);
if (!succeeded)
throw NumericalIssue("linearization of an auxiliary equation failed");
throw NumericalProblem("linearization of an auxiliary equation failed");
}
}