Aquifer Restart: Address Review Comments

Mostly 'throw'ing in the case of unsupported operations.  While
here, also remove an unused header.
This commit is contained in:
Bård Skaflestad
2019-12-05 13:41:05 +01:00
parent 143b45ed52
commit ce1e0691a8
3 changed files with 17 additions and 3 deletions

View File

@@ -25,6 +25,9 @@
#include <opm/output/data/Aquifer.hpp>
#include <exception>
#include <stdexcept>
namespace Opm
{
@@ -148,7 +151,12 @@ namespace Opm
}
void assignRestartData(const data::AquiferData& /* xaq */) override
{}
{
throw std::runtime_error {
"Restart-based initialization not currently supported "
"for Carter-Tracey analytic aquifers"
};
}
inline void getInfluenceTableValues(Scalar& pitd, Scalar& pitd_prime, const Scalar& td)
{

View File

@@ -34,7 +34,6 @@
#include <opm/simulators/aquifers/AquiferCarterTracy.hpp>
#include <opm/simulators/aquifers/AquiferFetkovich.hpp>
#include <opm/simulators/timestepping/SimulatorTimer.hpp>
#include <opm/material/densead/Math.hpp>