> Hello, > > I finally manage to compile FlightGear with MSVC6 under Win2k and I > encountered the same error. > I found that the problem is a division by zero in > FGInitialCondition::solve(float *y,float x) and I applied the patch > suggested > by Richard Kis on 11/28/01. > > cvs -z3 -q diff FGInitialCondition.cpp (in directory > C:\FlightGear\cvs\FlightGear\src\FDM\JSBSim\)Index: FGInitialCondition.cpp > =================================================================== > RCS file: > /var/cvs/FlightGear-0.7/FlightGear/src/FDM/JSBSim/FGInitialCondition.cpp,v > retrieving revision 1.29 > diff -r1.29 FGInitialCondition.cpp > 666a667,668 > > if (f3-f1 == 0.0) > > f3+= 0.000000000001;
We have seen this happen before. This does prevent a division by zero. However, Tony has mentioned before that f3 should *never* be zero. If it is, there is something else happening upstream from that point. Jon Jon Berndt Coordinator, JSBSim Project http://jsbsim.sf.net Enter BUG REPORTS at http://sf.net/tracker/?atid=119399&group_id=19399 Enter FEATURE REQUESTS at http://sf.net/tracker/?atid=369399&group_id=19399 _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
