mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #4836 from OPM/fix-transfer-of-single-timestep-data
#4835 Python Cell Results : Not possible to write data if no dynamic data is present
This commit is contained in:
@@ -56,13 +56,13 @@ void RimEclipseStatisticsCaseEvaluator::addNamedResult( RigCaseCellResultsData*
|
||||
destinationCellResults->createResultEntry( resAddr, true );
|
||||
|
||||
destinationCellResults->setTimeStepInfos( resAddr, sourceTimeStepInfos );
|
||||
std::vector<std::vector<double>>& dataValues = destinationCellResults->modifiableCellScalarResultTimesteps( resAddr );
|
||||
dataValues.resize( sourceTimeStepInfos.size() );
|
||||
std::vector<std::vector<double>>* dataValues = destinationCellResults->modifiableCellScalarResultTimesteps( resAddr );
|
||||
dataValues->resize( sourceTimeStepInfos.size() );
|
||||
|
||||
// Initializes the size of the destination dataset to active union cell count
|
||||
for ( size_t i = 0; i < sourceTimeStepInfos.size(); i++ )
|
||||
{
|
||||
dataValues[i].resize( activeUnionCellCount, HUGE_VAL );
|
||||
dataValues->at( i ).resize( activeUnionCellCount, HUGE_VAL );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -285,9 +285,7 @@ void RimReservoirCellResultsStorage::setCellResults( RigCaseCellResultsData* cel
|
||||
|
||||
for ( size_t tsIdx = 0; tsIdx < resInfo->m_timeStepDates().size(); ++tsIdx )
|
||||
{
|
||||
std::vector<double>* data = nullptr;
|
||||
|
||||
data = &( m_cellResults->modifiableCellScalarResult( resAddr, tsIdx ) );
|
||||
std::vector<double>* data = m_cellResults->modifiableCellScalarResult( resAddr, tsIdx );
|
||||
|
||||
quint64 cellCount = 0;
|
||||
stream >> cellCount;
|
||||
|
||||
Reference in New Issue
Block a user