anchor.diff:        call SetErrStat(ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName)
         
         ! set values of m%BEMT_u(1) from inputs (uInterp) interpolated at t:
  +      ! NOTE: framework has t at u(2)
         ! I'm doing this second in case we want the other misc vars at t as before, but I don't think it matters      
      call AD_Input_ExtrapInterp(u,utimes,uInterp, t, errStat2, errMsg2)
         call SetErrStat(ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName)
  
positive.code:       end if
  
        ! set values of m%BEMT_u(2) from inputs interpolated at t+dt:
     call AD_Input_ExtrapInterp(u,utimes,uInterp,t+p%DT, errStat2, errMsg2)
        call SetErrStat(ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName)
  
  
negative.code:       call SetInputsForFVW(p, u, m, errStat2, errMsg2)
           call SetErrStat(ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName)
           ! Note: the setup is handled above in the SetInputs routine
        call FVW_UpdateStates( t, n, m%FVW_u, utimes, p%FVW, x%FVW, xd%FVW, z%FVW, OtherState%FVW, m%FVW, ErrStat2, ErrMsg2 )
           call SetErrStat(ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName)
     endif
  