]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGAtmosphere.cpp
Check return value of FDM::init().
[flightgear.git] / src / FDM / JSBSim / FGAtmosphere.cpp
index f31daec2c413857f702f790e48cc009bd6351729..3dc6810ac35e2540ab02988f45df5e6ba5b1d300 100644 (file)
@@ -59,12 +59,17 @@ INCLUDES
 #include "FGDefs.h"
 #include "FGMatrix.h"
 
+static const char *IdSrc = "$Header$";
+static const char *IdHdr = ID_ATMOSPHERE;
+
 /*******************************************************************************
 ************************************ CODE **************************************
 *******************************************************************************/
 
 
-FGAtmosphere::FGAtmosphere(FGFDMExec* fdmex) : FGModel(fdmex),vWindUVW(3),vWindNED(3)
+FGAtmosphere::FGAtmosphere(FGFDMExec* fdmex) : FGModel(fdmex),
+                                                    vWindNED(3),
+                                                    vWindUVW(3)
 {
     Name = "FGAtmosphere";
     h = 0;
@@ -108,8 +113,8 @@ bool FGAtmosphere::Run(void)
             //and we know that headwinds increase the relative
             //velocity, so to make a positive delta U from the
             //southerly wind the sign must be switched.
-            vWindNED*=-1;
-            vWindUVW=State->GetTl2b()*vWindNED;
+            vWindNED *= -1;
+            vWindUVW  = State->GetTl2b()*vWindNED;
         }
         soundspeed = sqrt(SHRATIO*Reng*temperature);
         //cout << "Atmosphere: soundspeed: " << soundspeed << endl;