From db652cc38ba92faec9299691295e47d016cb01d2 Mon Sep 17 00:00:00 2001 From: Dominic Dirkx Date: Tue, 8 Nov 2016 10:55:53 +0100 Subject: [PATCH] Fixed bug preventing NRLMSISE to be used with FlightConditions --- Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp b/Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp index 5438071bf4..57cd7622cc 100644 --- a/Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp +++ b/Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp @@ -42,10 +42,9 @@ FlightConditions::FlightConditions( bodyCenteredPseudoBodyFixedStateFunction_ = boost::bind( &reference_frames::AerodynamicAngleCalculator::getCurrentBodyFixedState, aerodynamicAngleCalculator_ ); - if( boost::dynamic_pointer_cast< aerodynamics::StandardAtmosphere >( atmosphereModel_ ) == - NULL ) + if( boost::dynamic_pointer_cast< aerodynamics::StandardAtmosphere >( atmosphereModel_ ) == NULL ) { - throw std::runtime_error( "Error when making flight conditions, no atmosphere is found" ); + updateLatitudeAndLongitude_ = 1; } if( updateLatitudeAndLongitude_ && aerodynamicAngleCalculator_== NULL )