anchor.diff:                          , x_MAP , xd_MAP , z_MAP  &
                           , x_AD  , xd_AD  , z_AD   &
                           )           
  -   
  +      
      !...............
      ! Copy values of these initial guesses for interpolation/extrapolation and 
      ! initialize predicted states for j_pc loop (use MESH_NEWCOPY here so we can use MESH_UPDATE copy later)
  
positive.code:       ! note: HD_InputSolve and MAP_InputSolve must be called before ED_InputSolve (so that motions are known for loads mapping)      
        CALL ED_InputSolve( p_FAST, ED_Input(1), y_AD, y_SrvD, y_HD, HD_Input(1), y_MAP, MAP_Input(1), MeshMapData, ErrStat, ErrMsg )
           CALL CheckError( ErrStat, 'Message from ED_InputSolve: '//NewLine//ErrMsg  )
              
     
        !.....................................................................
        ! Reset each mesh's RemapFlag (after calling all InputSolve routines):
        !.....................................................................              
           
        CALL ResetRemapFlags()
                          
     END SUBROUTINE CalcOutputs_And_SolveForInputs  
     !...............................................................................................................................
  
negative.code: REAL(DbKi)                            :: dt_global                               ! we're limiting our simulation to lock-step time steps for now
  REAL(DbKi)                            :: t_global                                ! Current simulation time
  REAL(DbKi)                            :: t_global_next                           ! next simulation time (t_global + p_FAST%dt)
  REAL(DbKi), PARAMETER                 :: t_initial = 0.0_DbKi                    ! Initial time
  REAL(DbKi)                            :: OutTime                                 ! Used to determine if output should be generated at this simulation time
  
  REAL(ReKi)                            :: PrevClockTime                           ! Clock time at start of simulation in seconds
  