Skip to content

Commit ae84d15

Browse files
committed
time average fix
1 parent cf4f609 commit ae84d15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SU2_CFD/src/output/COutput.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,6 @@ void COutput::SetVolumeOutputValue(const string& name, unsigned long iPoint, su2
17121712
SU2_MPI::Error("Cannot find output field with name " + name, CURRENT_FUNCTION);
17131713
}
17141714
} else {
1715-
17161715
/*--- Use the offset caches for the access. ---*/
17171716
const short Offset = fieldIndexCache[cachePosition];
17181717
const short OffsetCompact = fieldIndexCacheCompact[cachePosition++];
@@ -1740,6 +1739,9 @@ su2double COutput::GetVolumeOutputValue(const string& name, unsigned long iPoint
17401739
if (it != volumeOutput_Map.end()) {
17411740
const short Offset = it->second.offset;
17421741
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);
17431745
if (Offset != -1) {
17441746
return volumeDataSorter->GetUnsortedData(iPoint, Offset);
17451747
}

0 commit comments

Comments
 (0)