anchor.diff:        CALL CleanUp
         RETURN
      END IF
  +   OtherState%Initialized  =  .TRUE.  ! set this flag immediately after the library was successfully loaded
   
      CALL C_F_PROCPOINTER( p%DLL_Orca%ProcAddr(1), OrcaDLL_Init )
   #endif
  
positive.code:    OtherState%PtfmAM       =  0.0_ReKi
     OtherState%PtfmFt       =  0.0_ReKi
     OtherState%LastTimeStep =  -1.0_DbKi
     OtherState%Initialized  =  .TRUE.
  
     InitOut%Ver =  Orca_Ver
  
  
negative.code:    CALL Orca_DestroyOutput( y, ErrStatTmp, ErrMsgTmp )
     CALL SetErrStat( ErrStatTmp,ErrMsgTmp,ErrStat,ErrMsg,RoutineName )
  
     OtherState%Initialized = .FALSE.
  
  
  END SUBROUTINE Orca_End
  