mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 09:22:05 -05:00
Merge pull request #3826 from bska/dont-capture-flux-unless-needed
Don't Capture Local Flux Data Unless Needed
This commit is contained in:
3 files changed
+12
No files matched your search
@@ -186,6 +186,11 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool needInterfaceFluxes([[maybe_unused]] const bool isSubStep) const
|
||||
{
|
||||
return this->interRegionFlows_.wantInterRegflowSummary();
|
||||
}
|
||||
|
||||
const std::map<std::size_t, double>& getWBPData() const
|
||||
{
|
||||
return this->wbpData_;
|
||||
|
||||
@@ -274,6 +274,11 @@ namespace Opm {
|
||||
/// Whether or not previous read() operation succeeded.
|
||||
bool readIsConsistent() const;
|
||||
|
||||
bool wantInterRegflowSummary() const
|
||||
{
|
||||
return !this->regionMaps_.empty();
|
||||
}
|
||||
|
||||
/// Serialise internal representation to MPI message buffer
|
||||
///
|
||||
/// \tparam MessageBufferType Linear MPI message buffer. API should
|
||||
|
||||
@@ -187,7 +187,9 @@ public:
|
||||
const auto localWellTestState = simulator_.problem().wellModel().wellTestState();
|
||||
this->prepareLocalCellData(isSubStep, reportStepNum);
|
||||
|
||||
if (this->eclOutputModule_->needInterfaceFluxes(isSubStep)) {
|
||||
this->captureLocalFluxData();
|
||||
}
|
||||
|
||||
if (this->collectToIORank_.isParallel()) {
|
||||
OPM_BEGIN_PARALLEL_TRY_CATCH()
|
||||
|
||||
Reference in new issue
Block a user