1
0
Fork 0

Don't use turbulence model by default because it is still under development.

This commit is contained in:
curt 2001-11-27 03:32:24 +00:00
parent ffe498f33f
commit c167c60de9
2 changed files with 4 additions and 5 deletions

View file

@ -91,8 +91,8 @@ FGAtmosphere::FGAtmosphere(FGFDMExec* fdmex) : FGModel(fdmex),
htab[7]=259186.352; //ft.
MagnitudedAccelDt = MagnitudeAccel = Magnitude = 0.0;
// turbType = ttNone;
turbType = ttBerndt; // temporarily disable turbulence until fully tested
turbType = ttNone;
// turbType = ttBerndt; // temporarily disable turbulence until fully tested
TurbGain = 100.0;
if (debug_lvl & 2) cout << "Instantiated: " << Name << endl;

View file

@ -664,9 +664,8 @@ bool FGInitialCondition::solve(double *y,double x)
i=0;
while ((fabs(d) > eps) && (i < 100)) {
d=(x3-x1)/d0;
if (f3-f1 != 0.0) x2 = x1-d*d0*f1/(f3-f1);
else x2 = x1-d*d0*f1/0.01; // TONY: What is correct? This is a WAG.
x2 = x1-d*d0*f1/(f3-f1);
f2=(this->*sfunc)(x2)-x;
//cout << "solve x1,x2,x3: " << x1 << "," << x2 << "," << x3 << endl;
//cout << " " << f1 << "," << f2 << "," << f3 << endl;