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
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. module CBucketEnum
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Set_MudBucket(v)
  6. use CManifolds, only: ToggleMudBox
  7. implicit none
  8. integer , intent(in) :: v
  9. #ifdef ExcludeExtraChanges
  10. if(MudBucket == v) return
  11. #endif
  12. MudBucket = v
  13. if (MudBucket == MUD_BUCKET_INSTALL) then
  14. call ToggleMudBox(.true.)
  15. else if (MudBucket == MUD_BUCKET_REMOVE) then
  16. call ToggleMudBox(.false.)
  17. endif
  18. #ifdef deb
  19. if(print_log) print*, 'MudBucket=', MudBucket
  20. #endif
  21. call OnMudBucketChange%RunAll()
  22. end subroutine
  23. integer function Get_MudBucket()
  24. implicit none
  25. Get_MudBucket = MudBucket
  26. end function
  27. ! subroutine ButtonPress_MudBoxInstallation()
  28. ! implicit none
  29. ! if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  30. ! #ifdef OST
  31. ! if(print_log) print*, 'ButtonPress_MudBoxInstallation=TopDrive'
  32. ! #endif
  33. ! endif
  34. ! if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  35. ! #ifdef OST
  36. ! if(print_log) print*, 'ButtonPress_MudBoxInstallation=Kelly'
  37. ! #endif
  38. ! call Set_MudBucket(MUD_BUCKET_INSTALL)
  39. ! endif
  40. ! end subroutine
  41. ! subroutine ButtonPress_MudBoxRemove()
  42. ! implicit none
  43. ! if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  44. ! #ifdef OST
  45. ! if(print_log) print*, 'ButtonPress_MudBoxRemove=TopDrive'
  46. ! #endif
  47. ! endif
  48. ! if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  49. ! #ifdef OST
  50. ! if(print_log) print*, 'ButtonPress_MudBoxRemove=Kelly'
  51. ! #endif
  52. ! call Set_MudBucket(MUD_BUCKET_REMOVE)
  53. ! endif
  54. ! end subroutine
  55. end module CBucketEnum