Skip to content

Commit

Permalink
debugging the super-critical case,
Browse files Browse the repository at this point in the history
also see issue #3
  • Loading branch information
thorade committed Nov 20, 2012
1 parent ec05281 commit 075f98f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ algorithm
end if;
else
// Modelica.Utilities.Streams.print("T>T_crit: multiple roots can occur, but two of the roots result in negative densities", "printlog.txt");
// Modelica.Utilities.Streams.print("d(Y1)=" + String(p/(R*T*(Y1+1/3))) + ", d(Y2)=" + String(p/(R*T*(Y2+1/3))) + ", d(p/(R*T*(Y3+1/3)))=" + String(Y3), "printlog.txt");
// Modelica.Utilities.Streams.print("d(Y1)=" + String(p/(R*T*(Y1+1/3))) + ", d(Y2)=" + String(p/(R*T*(Y2+1/3))) + ", d(Y3)=" + String(p/(R*T*(Y3+1/3))), "printlog.txt");
d := max(p/(R*T*(Y1+1/3)), p/(R*T*(Y2+1/3)));
d := max(p/(R*T*(Y3+1/3)), d);
end if;
Expand Down

0 comments on commit 075f98f

Please sign in to comment.