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.

CStringPressure.f90 1.4 KiB

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