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.

CInstallMudBucketPermissionVariables.f90 1.6 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. module CInstallMudBucketPermissionVariables
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. logical :: InstallMudBucketPermission = .false.
  5. public
  6. type(VoidEventHandlerCollection) :: OnInstallMudBucketPermissionChange
  7. private :: InstallMudBucketPermission
  8. contains
  9. subroutine Set_InstallMudBucketPermission(v)
  10. implicit none
  11. logical , intent(in) :: v
  12. #ifdef ExcludeExtraChanges
  13. if(InstallMudBucketPermission == v) return
  14. #endif
  15. InstallMudBucketPermission = v
  16. #ifdef deb
  17. print*, 'InstallMudBucketPermission=', InstallMudBucketPermission
  18. #endif
  19. call OnInstallMudBucketPermissionChange%RunAll()
  20. end subroutine
  21. logical function Get_InstallMudBucketPermission()
  22. implicit none
  23. Get_InstallMudBucketPermission = InstallMudBucketPermission
  24. end function
  25. subroutine Set_InstallMudBucketPermission_WN(v)
  26. !DEC$ ATTRIBUTES DLLEXPORT :: Set_InstallMudBucketPermission_WN
  27. !DEC$ ATTRIBUTES ALIAS: 'Set_InstallMudBucketPermission_WN' :: Set_InstallMudBucketPermission_WN
  28. implicit none
  29. logical , intent(in) :: v
  30. call Set_InstallMudBucketPermission(v)
  31. end subroutine
  32. logical function Get_InstallMudBucketPermission_WN()
  33. !DEC$ ATTRIBUTES DLLEXPORT :: Get_InstallMudBucketPermission_WN
  34. !DEC$ ATTRIBUTES ALIAS: 'Get_InstallMudBucketPermission_WN' :: Get_InstallMudBucketPermission_WN
  35. implicit none
  36. Get_InstallMudBucketPermission_WN = InstallMudBucketPermission
  37. end function
  38. end module CInstallMudBucketPermissionVariables