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.

CIbopHeight.f90 1.3 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. module CIbopHeight
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. real :: IbopHeight = 0
  5. public
  6. type(VoidEventHandlerCollection) :: OnIbopHeightChange
  7. private :: IbopHeight
  8. contains
  9. subroutine Set_IbopHeight(v)
  10. implicit none
  11. real , intent(in) :: v
  12. #ifdef ExcludeExtraChanges
  13. if(IbopHeight == v) return
  14. #endif
  15. IbopHeight = v
  16. #ifdef deb
  17. print*, 'IbopHeight=', IbopHeight
  18. #endif
  19. call OnIbopHeightChange%RunAll()
  20. end subroutine
  21. real function Get_IbopHeight()
  22. implicit none
  23. Get_IbopHeight = IbopHeight
  24. !Get_IbopHeight = 23.0
  25. end function
  26. subroutine Set_IbopHeight_WN(v)
  27. !DEC$ ATTRIBUTES DLLEXPORT :: Set_IbopHeight_WN
  28. !DEC$ ATTRIBUTES ALIAS: 'Set_IbopHeight_WN' :: Set_IbopHeight_WN
  29. implicit none
  30. real , intent(in) :: v
  31. call Set_IbopHeight(v)
  32. end subroutine
  33. real function Get_IbopHeight_WN()
  34. !DEC$ ATTRIBUTES DLLEXPORT :: Get_IbopHeight_WN
  35. !DEC$ ATTRIBUTES ALIAS: 'Get_IbopHeight_WN' :: Get_IbopHeight_WN
  36. implicit none
  37. Get_IbopHeight_WN = IbopHeight
  38. !Get_IbopHeight_WN = 23.0
  39. end function
  40. subroutine Subscribe_IbopHeight()
  41. implicit none
  42. end subroutine
  43. end module CIbopHeight