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.

CStandRack.f90 838 B

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738
  1. module CStandRack
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. integer :: StandRack = 0
  5. public
  6. type(VoidEventHandlerCollection) :: OnStandRackChanged
  7. private :: StandRack
  8. contains
  9. subroutine Set_StandRack(v)
  10. implicit none
  11. integer , intent(in) :: v
  12. #ifdef ExcludeExtraChanges
  13. if(StandRack == v) return
  14. #endif
  15. StandRack = v
  16. #ifdef deb
  17. print*, 'StandRack=', StandRack
  18. #endif
  19. call OnStandRackChanged%RunAll()
  20. end subroutine
  21. integer function Get_StandRack()
  22. implicit none
  23. Get_StandRack = StandRack
  24. end function
  25. subroutine Subscribe_StandRack()
  26. use CCommonVariables
  27. implicit none
  28. call OnStandRackChange%AssignTo(Set_StandRack)
  29. end subroutine
  30. end module CStandRack