anchor.diff:        END IF
   
   
  -   END SUBROUTINE CheckError
  -   
  +   END SUBROUTINE CheckError   
  +   !...............................................................................................................................
      
   !====================================================================================================
   SUBROUTINE HydroDyn_Open_Debug_Outputs( OutRootName, Un, ErrStat, ErrMsg )
  
positive.code: INTEGER(IntKi)                        :: J                                       ! generic loop counter
  INTEGER                               :: StrtTime (8)                            ! Start time of simulation
  INTEGER(IntKi)                        :: n_TMax                                  ! The time step of TMax (the end time of the simulation)
  INTEGER(IntKi)                        :: Step                                    ! Current simulation time step
  INTEGER(IntKi)                        :: ErrStat                                 ! Error status
  CHARACTER(1024)                       :: ErrMsg                                  ! Error message
  
negative.code: TYPE(SrvD_InputType)                  :: u_SrvD                                  ! System inputs
  TYPE(SrvD_OutputType)                 :: y_SrvD                                  ! System outputs
  
  TYPE(SrvD_OutputType)                 :: y_SrvD_prev                             ! System outputs at previous time step (required for SrvD Input-Output solve)
  
  TYPE(SrvD_ContinuousStateType)        :: x_SrvD_pred                             ! Predicted continuous states
  TYPE(SrvD_DiscreteStateType)          :: xd_SrvD_pred                            ! Predicted discrete states
  TYPE(SrvD_ConstraintStateType)        :: z_SrvD_pred                             ! Predicted constraint states
  
  TYPE(SrvD_InputType), ALLOCATABLE     :: SrvD_Input(:)                           ! Array of inputs associated with SrvD_InputTimes
  REAL(DbKi),         ALLOCATABLE       :: SrvD_InputTimes(:)                      ! Array of times associated with SrvD_Input
  
  
     ! Data for the AeroDyn module:
  
     ! Data for InflowWind module:
  