Skip to content

Commit 8b5115e

Browse files
Do not let QN check exchangeSubsteps. (#2193)
1 parent 5f1a4f1 commit 8b5115e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/acceleration/BaseQNAcceleration.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -656,18 +656,9 @@ void BaseQNAcceleration::concatenateCouplingData(Eigen::VectorXd &data, Eigen::V
656656

657657
void BaseQNAcceleration::initializeVectorsAndPreconditioner(const DataMap &cplData, double windowStart)
658658
{
659-
660-
// If we are not subcycling then we only want to use the last time step in the QN system
661-
bool subcycling = false;
662-
for (const auto &data : cplData | boost::adaptors::map_values) {
663-
if (data->exchangeSubsteps()) {
664-
subcycling = true;
665-
}
666-
}
667-
668659
// Saves the time grid of each waveform in the data field to be used in the QN method
669-
_timeGrids.emplace(cplData, _dataIDs, !subcycling);
670-
_primaryTimeGrids.emplace(cplData, _primaryDataIDs, !(subcycling and !_reducedTimeGrid));
660+
_timeGrids.emplace(cplData, _dataIDs, false);
661+
_primaryTimeGrids.emplace(cplData, _primaryDataIDs, _reducedTimeGrid);
671662

672663
// Helper function
673664
auto addTimeSliceSize = [&](size_t sum, int id, precice::time::TimeGrids timeGrids) { return sum + timeGrids.getTimeGridAfter(id, windowStart).size() * cplData.at(id)->getSize(); };

0 commit comments

Comments
 (0)