Skip to content

Commit 13b08f5

Browse files
committed
fix...
1 parent ae84d15 commit 13b08f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

SU2_CFD/src/output/COutput.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ void COutput::LoadData(CGeometry *geometry, CConfig *config, CSolver** solver_co
380380
/*--- Partition and sort the volume output data -- */
381381

382382
volumeDataSorter->SortOutputData();
383+
if (volumeDataSorterCompact != nullptr) volumeDataSorterCompact->SortOutputData();
383384

384385
}
385386

@@ -1739,9 +1740,6 @@ su2double COutput::GetVolumeOutputValue(const string& name, unsigned long iPoint
17391740
if (it != volumeOutput_Map.end()) {
17401741
const short Offset = it->second.offset;
17411742
fieldGetIndexCache.push_back(Offset);
1742-
/*--- This function is used for time-averaged fields and we know
1743-
* those are not part of the compact restart fields. ---*/
1744-
fieldIndexCacheCompact.push_back(-1);
17451743
if (Offset != -1) {
17461744
return volumeDataSorter->GetUnsortedData(iPoint, Offset);
17471745
}
@@ -1776,6 +1774,9 @@ void COutput::SetAvgVolumeOutputValue(const string& name, unsigned long iPoint,
17761774
if (it != volumeOutput_Map.end()) {
17771775
const short Offset = it->second.offset;
17781776
fieldIndexCache.push_back(Offset);
1777+
/*--- This function is used for time-averaged fields and we know
1778+
* those are not part of the compact restart fields. ---*/
1779+
fieldIndexCacheCompact.push_back(-1);
17791780
if (Offset != -1) {
17801781
const su2double old_value = volumeDataSorter->GetUnsortedData(iPoint, Offset);
17811782
const su2double new_value = value * scaling + old_value * (1.0 - scaling);

0 commit comments

Comments
 (0)