SUBROUTINE IntegrateSpeed(Thrust,MassActual,Massflow,Alpha,g,Gamma,Density,Dref,CD,Timestep,v0,Drag,v1)
! This Subroutine will integrate the speed value.
! It takes speed and other parameters from step i and estimates the speed for step i+1.
IMPLICIT NONE
! Subroutine In- and Outputs
REAL(KIND=2), INTENT(IN) :: Thrust ! Input: Thrust
REAL(KIND=2), INTENT(IN) :: MassActual ! Input: Actual Mass
REAL(KIND=2), INTENT(IN) :: Massflow ! Input: Actual Massflow
REAL(KIND=2), INTENT(IN) :: Alpha ! Input: Angle of Attack Alpha
REAL(KIND=2), INTENT(IN) :: g ! Input: g-Acceleration
REAL(KIND=2), INTENT(IN) :: Gamma ! Input: Gamma
REAL(KIND=2), INTENT(IN) :: Density ! Input: Actual Density
REAL(KIND=2), INTENT(IN) :: Dref ! Input: Reference Diameter
REAL(KIND=2), INTENT(IN) :: CD ! Input: Drag Coefficient
REAL(KIND=2), INTENT(IN) :: Timestep ! Input: Timestep between step i and step i+1
REAL(KIND=2), INTENT(IN) :: v0 ! Input: Speed from step i
REAL(KIND=2), INTENT(OUT) :: Drag ! Output: Drag
REAL(KIND=2), INTENT(OUT) :: v1 ! Output: Speed from step i+1
! Help variables
REAL(KIND=2) :: Sref,Mass
REAL(KIND=2), PARAMETER :: PI=3.1415926536 ! Pi
! Help velocities and derivatives
REAL(KIND=2) :: dv0,vA,dvA,vB,dvB,vC,dvC
This is the first part of the subroutine where all the variables are initialized. I also checked the calculations for any capital o's but found none. I'll still have to try with the debugger, but as far as I can see
none of the variables are undefined.
Edit: Just ran the debugger with /UNDEF on, it shows a lot of the variables as undefined but some of them come from an Input file. Sorry for not mentioning that earlier.