mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Merge pull request #2310 from akva2/noecl_small_stuff
Preparatory changes for single-process parsing
This commit is contained in:
@@ -140,7 +140,17 @@ void
|
||||
BlackoilAquiferModel<TypeTag>::init()
|
||||
{
|
||||
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();
|
||||
const auto& eclState = this->simulator_.vanguard().eclState();
|
||||
|
||||
@@ -163,7 +173,14 @@ BlackoilAquiferModel<TypeTag>::init()
|
||||
aquifer_connection.at(i), cartesian_to_compressed_, this->simulator_, aquifersData.at(i)));
|
||||
}
|
||||
}
|
||||
if (deck.hasKeyword("AQUFETP")) {
|
||||
if (comm.rank() == 0)
|
||||
has = deck.hasKeyword("AQUFETP");
|
||||
comm.broadcast(&has, 1, 0);
|
||||
|
||||
if (has) {
|
||||
if (comm.size() > 1)
|
||||
throw std::runtime_error("Aquifers currently do not work in parallel.");
|
||||
|
||||
// updateConnectionIntensiveQuantities();
|
||||
const auto& eclState = this->simulator_.vanguard().eclState();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user