mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 09:51:44 -06:00
Add support for increase of serial number when data is assigned to a SUMO case
This commit is contained in:
parent
c795eccf0b
commit
a9ea615bf0
@ -69,12 +69,20 @@ int RifSummaryReaderInterface::serialNumber() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifSummaryReaderInterface::RifSummaryReaderInterface()
|
||||
void RifSummaryReaderInterface::increaseSerialNumber()
|
||||
{
|
||||
#pragma omp critical
|
||||
m_serialNumber = m_nextSerialNumber++;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifSummaryReaderInterface::RifSummaryReaderInterface()
|
||||
{
|
||||
increaseSerialNumber();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
||||
|
@ -124,6 +124,8 @@ void RimSummaryCaseSumo::setValues( const std::vector<time_t>& timeSteps,
|
||||
{
|
||||
m_timeSteps = timeSteps;
|
||||
m_values[resultAddress] = values;
|
||||
|
||||
increaseSerialNumber();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user