Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CInstallFillupHeadPermission.f90 2.0 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. module CInstallFillupHeadPermission
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_InstallFillupHeadPermission()
  6. use TD_DrillStemComponents
  7. implicit none
  8. if (DriveType == TopDrive_DriveType) then
  9. #ifdef OST
  10. print*, 'Evaluate_InstallFillupHeadPermission=TopDrive'
  11. #endif
  12. endif
  13. if (DriveType == Kelly_DriveType) then
  14. #ifdef OST
  15. print*, 'Evaluate_InstallFillupHeadPermission=Kelly'
  16. #endif
  17. !!OPERATION-CODE=69
  18. !if (Get_OperationCondition() == OPERATION_DRILL .and.&
  19. ! Get_NearFloorConnection() >= 3.0 .and. Get_NearFloorConnection() <= 6.0 .and.&
  20. ! Get_JointConnectionPossible() == .false. .and.&
  21. ! Get_KellyConnection() /= KELLY_CONNECTION_STRING .and.&
  22. ! Get_Slips() == SLIPS_SET_END) then
  23. !
  24. ! call Set_InstallFillupHeadPermission(.true.)
  25. ! return
  26. !end if
  27. !OPERATION-CODE=70
  28. if (Get_OperationCondition() == OPERATION_TRIP .and.&
  29. TD_TopJointHeight >= 3.0 .and. TD_TopJointHeight <= 9.0 .and.&
  30. Get_JointConnectionPossible() == .false. .and.&
  31. !Get_ElevatorConnectionPossible() == .false. .and.&
  32. !Get_ElevatorConnection() /= ELEVATOR_CONNECTION_STRING .and.&
  33. Get_ElevatorConnection() == ELEVATOR_CONNECTION_NOTHING) then
  34. call Set_InstallFillupHeadPermission(.true.)
  35. return
  36. end if
  37. call Set_InstallFillupHeadPermission(.false.)
  38. endif
  39. end subroutine
  40. subroutine Subscribe_InstallFillupHeadPermission()
  41. implicit none
  42. ! imp me...
  43. end subroutine
  44. end module CInstallFillupHeadPermission