Better bounding on topo change

This commit is contained in:
Hrvoje Jasak 2015-09-11 16:08:23 +01:00
parent 5f6a39a46e
commit e411de9576

View file

@ -85,9 +85,9 @@ int main(int argc, char *argv[])
// Mesh motion update // Mesh motion update
if (meshChanged) if (meshChanged)
{ {
T = max(T, TMin); T.max(TMin);
p = max(p, pMin); p.max(pMin);
e = max(e, thermo.Cv()*TMin); e == max(e, thermo.Cv()*TMin);
thermo.correct(); thermo.correct();
rho = thermo.rho(); rho = thermo.rho();