Skip to content

Commit

Permalink
[bugfix] Getting rid of "printf double root"
Browse files Browse the repository at this point in the history
This printf output was slowing down the CharlesX output and making
it unreadable.
  • Loading branch information
qdouasbin committed Jan 28, 2019
1 parent e5cba03 commit 6e6b7e9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/thermo/PengRobinsonGasPhase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,7 @@ doublereal PengRobinsonGasPhase::GetCubicRoots(doublereal a0, doublereal a1,
signArg = (arg>0)?1.0:-1.0;
v = signArg*pow(fabs(arg), 1.0/3.0);
Z = -a2/3.0 + u + v;
// printf ("single root %e of %e %e %e \n",Z, a0, a1,a2);
//printf("Z+= %f\n", Z);
} else if (fabs(Det) <= eps) {
printf ("double root \n");
arg = -q/2.0;
signArg = (arg>0)?1.0:-1.0;
u = signArg*pow(fabs(arg), 1.0/3.0);
Expand Down

0 comments on commit 6e6b7e9

Please sign in to comment.