Add support for increase of serial number when data is assigned to a SUMO case

This commit is contained in:
Magne Sjaastad 2024-10-23 15:45:33 +02:00
parent c795eccf0b
commit a9ea615bf0
3 changed files with 13 additions and 1 deletions

View File

@ -69,12 +69,20 @@ int RifSummaryReaderInterface::serialNumber() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifSummaryReaderInterface::RifSummaryReaderInterface()
void RifSummaryReaderInterface::increaseSerialNumber()
{
#pragma omp critical
m_serialNumber = m_nextSerialNumber++;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifSummaryReaderInterface::RifSummaryReaderInterface()
{
increaseSerialNumber();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -58,6 +58,8 @@ public:
int serialNumber() const;
protected:
void increaseSerialNumber();
std::set<RifEclipseSummaryAddress> m_allResultAddresses; // Result and error addresses
std::set<RifEclipseSummaryAddress> m_allErrorAddresses; // Error addresses

View File

@ -124,6 +124,8 @@ void RimSummaryCaseSumo::setValues( const std::vector<time_t>& timeSteps,
{
m_timeSteps = timeSteps;
m_values[resultAddress] = values;
increaseSerialNumber();
}
//--------------------------------------------------------------------------------------------------