mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Throw in output if OwnerCellsFirst = False
This commit is contained in:
parent
6eeb5b4187
commit
87361b8f8d
@ -44,6 +44,7 @@
|
||||
|
||||
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
|
||||
#include <opm/simulators/utils/ParallelRestart.hpp>
|
||||
#include <opm/simulators/flow/countGlobalCells.hpp>
|
||||
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
|
||||
@ -516,7 +517,7 @@ private:
|
||||
}
|
||||
|
||||
const auto& gridView = simulator_.vanguard().gridView();
|
||||
const int num_interior = Opm::detail::
|
||||
const int num_interior = detail::
|
||||
countLocalInteriorCellsGridView(gridView);
|
||||
const bool log = this->collectToIORank_.isIORank();
|
||||
|
||||
|
@ -711,7 +711,7 @@ regionSum(const ScalarBuffer& property,
|
||||
// the property does not contain the ghostcells
|
||||
// This code assumes that that the ghostcells are
|
||||
// added after the interior cells
|
||||
// Is this a valid assumption?
|
||||
// OwnerCellsFirst = True
|
||||
assert(regionId.size() >= property.size());
|
||||
for (std::size_t j = 0; j < property.size(); ++j) {
|
||||
const int regionIdx = regionId[j] - 1;
|
||||
|
@ -173,6 +173,14 @@ public:
|
||||
|
||||
this->forceDisableFipresvOutput_ =
|
||||
EWOMS_GET_PARAM(TypeTag, bool, ForceDisableResvFluidInPlaceOutput);
|
||||
|
||||
if (! EWOMS_GET_PARAM(TypeTag, bool, OwnerCellsFirst)) {
|
||||
const std::string msg = "The output code does not support --owner-cells-first=false.";
|
||||
if (collectToIORank.isIORank()) {
|
||||
OpmLog::error(msg);
|
||||
}
|
||||
OPM_THROW_NOLOG(std::runtime_error, msg);
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -331,7 +331,7 @@ public:
|
||||
}
|
||||
|
||||
const auto& gridView = simulator_.vanguard().gridView();
|
||||
const int num_interior = Opm::detail::
|
||||
const int num_interior = detail::
|
||||
countLocalInteriorCellsGridView(gridView);
|
||||
|
||||
this->eclOutputModule_->
|
||||
@ -562,7 +562,7 @@ private:
|
||||
const auto& gridView = simulator_.vanguard().gridView();
|
||||
const bool log = this->collectToIORank_.isIORank();
|
||||
|
||||
const int num_interior = Opm::detail::
|
||||
const int num_interior = detail::
|
||||
countLocalInteriorCellsGridView(gridView);
|
||||
this->eclOutputModule_->
|
||||
allocBuffers(num_interior, reportStepNum,
|
||||
|
Loading…
Reference in New Issue
Block a user