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.
 
 
 
 
 
 

83 lines
2.1 KiB

  1. module CTdsBackupClampVariables
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. integer :: TdsBackupClamp = 0
  5. public
  6. type(VoidEventHandlerCollection) :: OnTdsBackupClampChange
  7. enum, bind(c)
  8. enumerator BACKUP_CLAMP_OFF_END
  9. enumerator BACKUP_CLAMP_OFF_BEGIN
  10. enumerator BACKUP_CLAMP_FW_BEGIN
  11. enumerator BACKUP_CLAMP_FW_END
  12. end enum
  13. private :: TdsBackupClamp
  14. contains
  15. subroutine Set_TdsBackupClamp(v)
  16. implicit none
  17. integer , intent(in) :: v
  18. #ifdef ExcludeExtraChanges
  19. if(TdsBackupClamp == v) return
  20. #endif
  21. TdsBackupClamp = v
  22. #ifdef deb
  23. print*, 'TdsBackupClamp=', TdsBackupClamp
  24. #endif
  25. call OnTdsBackupClampChange%RunAll()
  26. end subroutine
  27. integer function Get_TdsBackupClamp()
  28. implicit none
  29. Get_TdsBackupClamp = TdsBackupClamp
  30. end function
  31. subroutine Set_TdsBackupClamp_WN(v)
  32. !DEC$ ATTRIBUTES DLLEXPORT :: Set_TdsBackupClamp_WN
  33. !DEC$ ATTRIBUTES ALIAS: 'Set_TdsBackupClamp_WN' :: Set_TdsBackupClamp_WN
  34. implicit none
  35. integer , intent(in) :: v
  36. call Set_TdsBackupClamp(v)
  37. end subroutine
  38. integer function Get_TdsBackupClamp_WN()
  39. !DEC$ ATTRIBUTES DLLEXPORT :: Get_TdsBackupClamp_WN
  40. !DEC$ ATTRIBUTES ALIAS: 'Get_TdsBackupClamp_WN' :: Get_TdsBackupClamp_WN
  41. implicit none
  42. Get_TdsBackupClamp_WN = TdsBackupClamp
  43. end function
  44. subroutine TdsBackupClampFwEnd()
  45. !DEC$ ATTRIBUTES DLLEXPORT :: TdsBackupClampFwEnd
  46. !DEC$ ATTRIBUTES ALIAS: 'TdsBackupClampFwEnd' :: TdsBackupClampFwEnd
  47. implicit none
  48. call Set_TdsBackupClamp(BACKUP_CLAMP_FW_END)
  49. #ifdef deb
  50. print*, 'BACKUP_CLAMP_FW_END'
  51. #endif
  52. end subroutine
  53. subroutine TdsBackupClampOffEnd()
  54. !DEC$ ATTRIBUTES DLLEXPORT :: TdsBackupClampOffEnd
  55. !DEC$ ATTRIBUTES ALIAS: 'TdsBackupClampOffEnd' :: TdsBackupClampOffEnd
  56. implicit none
  57. call Set_TdsBackupClamp(BACKUP_CLAMP_OFF_END)
  58. #ifdef deb
  59. print*, 'BACKUP_CLAMP_OFF_END'
  60. #endif
  61. end subroutine
  62. end module CTdsBackupClampVariables