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.

CBucketEnum.f90 2.0 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. module CBucketEnum
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_MudBucket()
  6. use CStudentStationVariables, only: MudBoxInstallation
  7. implicit none
  8. ! if (DriveType == TopDrive_DriveType) then
  9. !#ifdef OST
  10. ! print*, 'Evaluate_MudBucket=TopDrive'
  11. !#endif
  12. ! endif
  13. !
  14. !
  15. !
  16. !
  17. ! if (DriveType == Kelly_DriveType) then
  18. !#ifdef OST
  19. ! print*, 'Evaluate_MudBucket=Kelly'
  20. !#endif
  21. ! endif
  22. if (Get_MudBucket() == MUD_BUCKET_INSTALL) then
  23. MudBoxInstallation = .true.
  24. else if (Get_MudBucket() == MUD_BUCKET_REMOVE) then
  25. MudBoxInstallation = .false.
  26. endif
  27. end subroutine
  28. ! subroutine Subscribe_MudBucket()
  29. ! use CStudentStationVariables
  30. ! implicit none
  31. ! call OnMudBoxInstallationPress%Add(ButtonPress_MudBoxInstallation)
  32. ! call OnMudBoxRemovePress%Add(ButtonPress_MudBoxRemove)
  33. ! end subroutine
  34. subroutine ButtonPress_MudBoxInstallation()
  35. implicit none
  36. if (DriveType == TopDrive_DriveType) then
  37. #ifdef OST
  38. print*, 'ButtonPress_MudBoxInstallation=TopDrive'
  39. #endif
  40. endif
  41. if (DriveType == Kelly_DriveType) then
  42. #ifdef OST
  43. print*, 'ButtonPress_MudBoxInstallation=Kelly'
  44. #endif
  45. call Set_MudBucket(MUD_BUCKET_INSTALL)
  46. endif
  47. end subroutine
  48. subroutine ButtonPress_MudBoxRemove()
  49. implicit none
  50. if (DriveType == TopDrive_DriveType) then
  51. #ifdef OST
  52. print*, 'ButtonPress_MudBoxRemove=TopDrive'
  53. #endif
  54. endif
  55. if (DriveType == Kelly_DriveType) then
  56. #ifdef OST
  57. print*, 'ButtonPress_MudBoxRemove=Kelly'
  58. #endif
  59. call Set_MudBucket(MUD_BUCKET_REMOVE)
  60. endif
  61. end subroutine
  62. end module CBucketEnum