Merge commit '889b8dcd4ca11b64dfa79f79e9c1222e23e258a9' into nextRelease

This commit is contained in:
Hrvoje Jasak 2018-02-07 13:04:08 +00:00
commit c3ced91c1a

View file

@ -442,8 +442,18 @@ void Foam::solution::setSolverPerformance
solverPerformance_.readIfPresent(name, perfs); solverPerformance_.readIfPresent(name, perfs);
} }
// Only the first iteration and the current iteration residuals are
// required, so the current iteration residual replaces the previous one and
// only the first iteration is always present, VS 2017-11-27
if (perfs.size() < 2)
{
// Append to list // Append to list
perfs.setSize(perfs.size() + 1, sp); perfs.setSize(perfs.size() + 1, sp);
}
else
{
perfs.last() = sp;
}
solverPerformance_.set(name, perfs); solverPerformance_.set(name, perfs);
} }