On Thu, Feb 10, 2011 at 8:05 PM, Andreas Gaeb <a.g...@web.de> wrote:
> Hi Henri,
>
> I think I found the error, it was in JSBSim's FGForce class. I've
> proposed a fix on the JSBSim-devel mailing list.
>
> Best regards,
>        Andreas

Hi Andreas,

had a look at the patch you suggested on the JSBSim list
(http://sourceforge.net/mailarchive/attachment.php?list_name=jsbsim-devel&message_id=4D5436B3.10606%40web.de&counter=1).

However, I looking at the code it seems calling these "InitMatrix" in
the FGForce constructor shouldn't be necessary. The FGMatrix33
constructor in fact does initialize the matrix to 0 (see
FGMatrix33.cpp, i.e.
FGMatrix33::FGMatrix33(void)
{
  data[0] = data[1] = data[2] = data[3] = data[4] = data[5] =
    data[6] = data[7] = data[8] = 0.0;
}

. And the FGForce constructor will automatically call all its members'
constructors.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to