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.

CStandPipeManifold.f90 8.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. module CStandPipeManifold
  2. use CStandPipeManifoldVariables
  3. use SimulationVariables
  4. use CManifolds
  5. implicit none
  6. public
  7. contains
  8. ! Input routines
  9. subroutine SetStandPipeManifoldValve1(v)
  10. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve1
  11. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve1' :: SetStandPipeManifoldValve1
  12. implicit none
  13. logical, intent(in) :: v
  14. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve1 = v
  15. call ChangeValve(13, v)
  16. #ifdef deb
  17. print*, 'StandPipeManifoldValve1=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve1
  18. #endif
  19. end subroutine
  20. subroutine SetStandPipeManifoldValve2(v)
  21. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve2
  22. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve2' :: SetStandPipeManifoldValve2
  23. implicit none
  24. logical, intent(in) :: v
  25. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve2 = v
  26. call ChangeValve(14, v)
  27. #ifdef deb
  28. print*, 'StandPipeManifoldValve2=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve2
  29. #endif
  30. end subroutine
  31. subroutine SetStandPipeManifoldValve3(v)
  32. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve3
  33. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve3' :: SetStandPipeManifoldValve3
  34. implicit none
  35. logical, intent(in) :: v
  36. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve3 = v
  37. call ChangeValve(15, v)
  38. #ifdef deb
  39. print*, 'StandPipeManifoldValve3=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve3
  40. #endif
  41. end subroutine
  42. subroutine SetStandPipeManifoldValve4(v)
  43. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve4
  44. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve4' :: SetStandPipeManifoldValve4
  45. implicit none
  46. logical, intent(in) :: v
  47. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve4 = v
  48. call ChangeValve(11, v)
  49. #ifdef deb
  50. print*, 'StandPipeManifoldValve4=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve4
  51. #endif
  52. end subroutine
  53. subroutine SetStandPipeManifoldValve5(v)
  54. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve5
  55. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve5' :: SetStandPipeManifoldValve5
  56. implicit none
  57. logical, intent(in) :: v
  58. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve5 = v
  59. call ChangeValve(12, v)
  60. #ifdef deb
  61. print*, 'StandPipeManifoldValve5=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve5
  62. #endif
  63. end subroutine
  64. subroutine SetStandPipeManifoldValve6(v)
  65. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve6
  66. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve6' :: SetStandPipeManifoldValve6
  67. implicit none
  68. logical, intent(in) :: v
  69. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve6 = v
  70. call ChangeValve(9, v)
  71. #ifdef deb
  72. print*, 'StandPipeManifoldValve6=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve6
  73. #endif
  74. end subroutine
  75. subroutine SetStandPipeManifoldValve7(v)
  76. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve7
  77. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve7' :: SetStandPipeManifoldValve7
  78. implicit none
  79. logical, intent(in) :: v
  80. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve7 = v
  81. call ChangeValve(10, v)
  82. #ifdef deb
  83. print*, 'StandPipeManifoldValve7=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve7
  84. #endif
  85. end subroutine
  86. subroutine SetStandPipeManifoldValve8(v)
  87. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve8
  88. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve8' :: SetStandPipeManifoldValve8
  89. implicit none
  90. logical, intent(in) :: v
  91. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve8 = v
  92. call ChangeValve(6, v)
  93. #ifdef deb
  94. print*, 'StandPipeManifoldValve8=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve8
  95. #endif
  96. end subroutine
  97. subroutine SetStandPipeManifoldValve9(v)
  98. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve9
  99. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve9' :: SetStandPipeManifoldValve9
  100. implicit none
  101. logical, intent(in) :: v
  102. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve9 = v
  103. call ChangeValve(7, v)
  104. #ifdef deb
  105. print*, 'StandPipeManifoldValve9=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve9
  106. #endif
  107. end subroutine
  108. subroutine SetStandPipeManifoldValve10(v)
  109. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve10
  110. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve10' :: SetStandPipeManifoldValve10
  111. implicit none
  112. logical, intent(in) :: v
  113. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve10 = v
  114. call ChangeValve(8, v)
  115. #ifdef deb
  116. print*, 'StandPipeManifoldValve10=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve10
  117. #endif
  118. end subroutine
  119. subroutine SetStandPipeManifoldValve11(v)
  120. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve11
  121. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve11' :: SetStandPipeManifoldValve11
  122. implicit none
  123. logical, intent(in) :: v
  124. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve11 = v
  125. call ChangeValve(1, v)
  126. #ifdef deb
  127. print*, 'StandPipeManifoldValve11=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve11
  128. #endif
  129. end subroutine
  130. subroutine SetStandPipeManifoldValve12(v)
  131. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve12
  132. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve12' :: SetStandPipeManifoldValve12
  133. implicit none
  134. logical, intent(in) :: v
  135. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve12 = v
  136. call ChangeValve(2, v)
  137. #ifdef deb
  138. print*, 'StandPipeManifoldValve12=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve12
  139. #endif
  140. end subroutine
  141. subroutine SetStandPipeManifoldValve13(v)
  142. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve13
  143. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve13' :: SetStandPipeManifoldValve13
  144. implicit none
  145. logical, intent(in) :: v
  146. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve13 = v
  147. call ChangeValve(3, v)
  148. #ifdef deb
  149. print*, 'StandPipeManifoldValve13=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve13
  150. #endif
  151. end subroutine
  152. subroutine SetStandPipeManifoldValve14(v)
  153. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve14
  154. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve14' :: SetStandPipeManifoldValve14
  155. implicit none
  156. logical, intent(in) :: v
  157. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve14 = v
  158. call ChangeValve(4, v)
  159. #ifdef deb
  160. print*, 'StandPipeManifoldValve14=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve14
  161. #endif
  162. end subroutine
  163. subroutine SetStandPipeManifoldValve15(v)
  164. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandPipeManifoldValve15
  165. !DEC$ ATTRIBUTES ALIAS: 'SetStandPipeManifoldValve15' :: SetStandPipeManifoldValve15
  166. implicit none
  167. logical, intent(in) :: v
  168. data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve15 = v
  169. call ChangeValve(5, v)
  170. #ifdef deb
  171. print*, 'StandPipeManifoldValve15=', data%EquipmentControl%StandPipeManifold%StandPipeManifoldValve15
  172. #endif
  173. end subroutine
  174. ! Output routines
  175. real(8) function GetStandPipeGauge1()
  176. !DEC$ ATTRIBUTES DLLEXPORT :: GetStandPipeGauge1
  177. !DEC$ ATTRIBUTES ALIAS: 'GetStandPipeGauge1' :: GetStandPipeGauge1
  178. implicit none
  179. GetStandPipeGauge1 = data%EquipmentControl%StandPipeManifold%StandPipeGauge1
  180. !GetStandPipeGauge1 = 567.4
  181. end function
  182. real(8) function GetStandPipeGauge2()
  183. !DEC$ ATTRIBUTES DLLEXPORT :: GetStandPipeGauge2
  184. !DEC$ ATTRIBUTES ALIAS: 'GetStandPipeGauge2' :: GetStandPipeGauge2
  185. implicit none
  186. GetStandPipeGauge2 = data%EquipmentControl%StandPipeManifold%StandPipeGauge2
  187. !GetStandPipeGauge2 = 1564.0
  188. end function
  189. end module CStandPipeManifold