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.
 
 
 
 
 
 

206 lines
6.8 KiB

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