setDeltaT
Im running 1.5.x.git version.
dont know if this counts as a bug, but it produces a sigFpe error. I'm running engineCompRatio and when I reach TDC it crashes. I traced the crash to the setDeltaT-line, when t1=0 Code:
But should there be some sort of warning/fix in setDeltaT when one tries to set the timestep to 0. Code:
|
Is it possible for the first loop:
if (mag(ca - ca0) > eps) { while(mag(ca - ca0) > eps) { ca = runTime.theta(); scalar t0 = runTime.userTimeToTime(ca0 - ca); runTime.setDeltaT(t0); runTime++; Info << "CA = " << ca << endl; mesh.move(); } } to suffer from the same problem? Also wouldn't it be better to reorganize the loops so that the test is only required once? H |
Sorry for the bad naming of the topic, I tried to edit it afterwards, but that wasnt possible...
Quote:
criteria at the entry of the while statement is always false. Quote:
just replace the ca-caX from the while (..) check and use runTime.theta()-caX, then the if's can be removed. N |
Thanks for the fix, I have pushed it into 1.5.x.
H |
All times are GMT -4. The time now is 05:05. |