Merge pull request #3826 from bska/dont-capture-flux-unless-needed

Don't Capture Local Flux Data Unless Needed
This commit is contained in:
Markus Blatt authored and GitHub committed 2022-02-26 16:38:24 +01:00
commit d5b74006c5
3 files changed
+12

No files matched your search

+5
View File
@@ -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_;
+5
View File
@@ -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
+2
View File
@@ -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()