anchor.diff:  
         end if
      end if
  -   
  -   ! Array OtherState%AllOuts() is initialized to 0.0 in initialization, so we are not going to reinitialize it here.
  -   
  -      
  -   !...............................................................................................................................
  -   ! Calculate all of the total forces and moments using all of the partial forces and moments calculated in RtHS().  Also,
  -   !   calculate all of the total angular and linear accelerations using all of the partial accelerations calculated in RtHS().
  -   !   To do this, first initialize the variables using the portions not associated with the accelerations.  Then add the portions
  -   !   associated with the accelerations one by one:
  -   !...............................................................................................................................  
      
      do j = 1,p%numBlades ! Loop through all blades
         
  
positive.code: end subroutine BEMT_AllocOutput
  
  
  
  subroutine BEMT_MapOutputs(p, OtherState, y, errStat, errMsg)
  
     type(BEMT_ParameterType),       intent(in   )  :: p           ! Parameters
     type(BEMT_OtherStateType),      intent(in   )  :: OtherState  ! other states
     type(BEMT_OutputType),          intent(inout)  :: y           ! system outputs 
     integer(IntKi),                 intent(  out)  :: errStat     ! Error status of the operation
     character(*),                   intent(  out)  :: errMsg      ! Error message if ErrStat /= ErrID_None
     
     ErrStat = ErrID_None
     ErrMsg = ""
     
  end subroutine BEMT_MapOutputs
  
  
  !----------------------------------------------------------------------------------------------------------------------------------
  subroutine BEMT_Init( InitInp, u, p, x, xd, z, OtherState, AFInfo, y, misc, Interval, InitOut, ErrStat, ErrMsg )
  ! This routine is called at the start of the simulation to perform initialization steps.
  
negative.code: !----------------------------------------------------------------------------------------------------------------------------------
  subroutine BEMT_CalcOutput( t, u, p, x, xd, z, OtherState, AFInfo, y, m, errStat, errMsg )
  ! Routine for computing outputs, used in both loose and tight coupling.
  !..................................................................................................................................
  
     
  