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

@@ -31,6 +31,8 @@
#include <opm/models/utils/propertysystem.hh>
#include <exception>
#include <stdexcept>
#include <vector>
BEGIN_PROPERTIES
@@ -78,7 +80,12 @@ public:
* volume from the model's aquifers.
*/
void initFromRestart(const std::vector<data::AquiferData>& aquiferSoln OPM_UNUSED)
{ }
{
throw std::logic_error {
"Initialization from restart data not supported "
"for base aquifer model"
};
}
/*!
* \brief This method is called when a new episode (report step) starts.