mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
avoid deck usage on non-root processes checking for AQUCT
aquifers are currently broken in parallel, add a throw if used in a parallel simulation.
This commit is contained in:
parent
39492fdaf4
commit
737cb0bb3e
@ -140,7 +140,17 @@ void
|
|||||||
BlackoilAquiferModel<TypeTag>::init()
|
BlackoilAquiferModel<TypeTag>::init()
|
||||||
{
|
{
|
||||||
const auto& deck = this->simulator_.vanguard().deck();
|
const auto& deck = this->simulator_.vanguard().deck();
|
||||||
if (deck.hasKeyword("AQUCT")) {
|
const auto& comm = this->simulator_.vanguard().gridView().comm();
|
||||||
|
|
||||||
|
bool has;
|
||||||
|
if (comm.rank() == 0)
|
||||||
|
has = deck.hasKeyword("AQUCT");
|
||||||
|
comm.broadcast(&has, 1, 0);
|
||||||
|
|
||||||
|
if (has) {
|
||||||
|
if (comm.size() > 1)
|
||||||
|
throw std::runtime_error("Aquifers currently do not work in parallel.");
|
||||||
|
|
||||||
// updateConnectionIntensiveQuantities();
|
// updateConnectionIntensiveQuantities();
|
||||||
const auto& eclState = this->simulator_.vanguard().eclState();
|
const auto& eclState = this->simulator_.vanguard().eclState();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user