Skip to content

Commit

Permalink
time average fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarruscag committed Jan 2, 2025
1 parent cf4f609 commit ae84d15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SU2_CFD/src/output/COutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,6 @@ void COutput::SetVolumeOutputValue(const string& name, unsigned long iPoint, su2
SU2_MPI::Error("Cannot find output field with name " + name, CURRENT_FUNCTION);
}
} else {

/*--- Use the offset caches for the access. ---*/
const short Offset = fieldIndexCache[cachePosition];
const short OffsetCompact = fieldIndexCacheCompact[cachePosition++];
Expand Down Expand Up @@ -1740,6 +1739,9 @@ su2double COutput::GetVolumeOutputValue(const string& name, unsigned long iPoint
if (it != volumeOutput_Map.end()) {
const short Offset = it->second.offset;
fieldGetIndexCache.push_back(Offset);
/*--- This function is used for time-averaged fields and we know
* those are not part of the compact restart fields. ---*/
fieldIndexCacheCompact.push_back(-1);
if (Offset != -1) {
return volumeDataSorter->GetUnsortedData(iPoint, Offset);
}
Expand Down

0 comments on commit ae84d15

Please sign in to comment.