anchor.diff:        end if
   
         ! set values of m%BEMT_u(2) from inputs interpolated at t+dt:
  +      ! NOTE: framework has t+dt at u(1)
      call AD_Input_ExtrapInterp(u,utimes,uInterp,t+p%DT, errStat2, errMsg2)
         call SetErrStat(ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName)
   
  
positive.code:             call Cleanup()
              return
           end if
  
        call FVW_CopyInput( m%FVW_u(1), m%FVW_u(2), MESH_NEWCOPY, ErrStat2, ErrMsg2 )
           call SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
     endif
      
   
  
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
  