Simulation Core
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

51 行
1.5 KiB

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