Don't Capture Local Flux Data Unless Needed

This is a potentially expensive operation and so we should not run
it unless such values are actually needed for output purposes (e.g.,
inter-region flow summary vectors).
This commit is contained in:
Bård Skaflestad
2022-02-25 11:31:57 +01:00
parent 18812281b6
commit eb55456565
3 changed files with 13 additions and 1 deletions

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