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.
 
 
 
 
 
 

290 lines
22 KiB

  1. module CBopProblems
  2. use SimulationVariables
  3. implicit none
  4. public
  5. contains
  6. subroutine BopProblemsFromJson(parent)
  7. type(json_value),pointer :: parent
  8. type(json_core) :: json
  9. type(json_value),pointer :: p,pval
  10. call json%get(parent,'BitProblems',p)
  11. call ProblemFromJson(p,"AnnularWash",data%problems%BopProblems%AnnularWash)
  12. call ProblemFromJson(p,"AnnularFail",data%problems%BopProblems%AnnularFail)
  13. call ProblemFromJson(p,"AnnularLeak",data%problems%BopProblems%AnnularLeak)
  14. call ProblemFromJson(p,"UpperRamWash",data%problems%BopProblems%UpperRamWash)
  15. call ProblemFromJson(p,"UpperRamFail",data%problems%BopProblems%UpperRamFail)
  16. call ProblemFromJson(p,"UpperRamLeak",data%problems%BopProblems%UpperRamLeak)
  17. call ProblemFromJson(p,"MiddleRamWash",data%problems%BopProblems%MiddleRamWash)
  18. call ProblemFromJson(p,"MiddleRamFail",data%problems%BopProblems%MiddleRamFail)
  19. call ProblemFromJson(p,"MiddleRamLeak",data%problems%BopProblems%MiddleRamLeak)
  20. call ProblemFromJson(p,"LowerRamWash",data%problems%BopProblems%LowerRamWash)
  21. call ProblemFromJson(p,"LowerRamFail",data%problems%BopProblems%LowerRamFail)
  22. call ProblemFromJson(p,"LowerRamLeak",data%problems%BopProblems%LowerRamLeak)
  23. call ProblemFromJson(p,"AccumulatorPumpFail",data%problems%BopProblems%AccumulatorPumpFail)
  24. call ProblemFromJson(p,"AccumulatorPumpLeak",data%problems%BopProblems%AccumulatorPumpLeak)
  25. call ProblemFromJson(p,"AccumulatorSystemFail",data%problems%BopProblems%AccumulatorSystemFail)
  26. call ProblemFromJson(p,"AccumulatorSystemLeak",data%problems%BopProblems%AccumulatorSystemLeak)
  27. end subroutine
  28. subroutine BopProblemsToJson(parent)
  29. type(json_value),pointer :: parent
  30. type(json_core) :: json
  31. type(json_value),pointer :: p
  32. ! 1. create new node
  33. call json%create_object(p,'BopProblems')
  34. ! 2. add member of data type to new node
  35. call ProblemToJson(p,"AnnularWash",data%problems%BopProblems%AnnularWash)
  36. call ProblemToJson(p,"AnnularFail",data%problems%BopProblems%AnnularFail)
  37. call ProblemToJson(p,"AnnularLeak",data%problems%BopProblems%AnnularLeak)
  38. call ProblemToJson(p,"UpperRamWash",data%problems%BopProblems%UpperRamWash)
  39. call ProblemToJson(p,"UpperRamFail",data%problems%BopProblems%UpperRamFail)
  40. call ProblemToJson(p,"UpperRamLeak",data%problems%BopProblems%UpperRamLeak)
  41. call ProblemToJson(p,"MiddleRamWash",data%problems%BopProblems%MiddleRamWash)
  42. call ProblemToJson(p,"MiddleRamFail",data%problems%BopProblems%MiddleRamFail)
  43. call ProblemToJson(p,"MiddleRamLeak",data%problems%BopProblems%MiddleRamLeak)
  44. call ProblemToJson(p,"LowerRamWash",data%problems%BopProblems%LowerRamWash)
  45. call ProblemToJson(p,"LowerRamFail",data%problems%BopProblems%LowerRamFail)
  46. call ProblemToJson(p,"LowerRamLeak",data%problems%BopProblems%LowerRamLeak)
  47. call ProblemToJson(p,"AccumulatorPumpFail",data%problems%BopProblems%AccumulatorPumpFail)
  48. call ProblemToJson(p,"AccumulatorPumpLeak",data%problems%BopProblems%AccumulatorPumpLeak)
  49. call ProblemToJson(p,"AccumulatorSystemFail",data%problems%BopProblems%AccumulatorSystemFail)
  50. call ProblemToJson(p,"AccumulatorSystemLeak",data%problems%BopProblems%AccumulatorSystemLeak)
  51. ! 3. add new node to parent
  52. call json%add(parent,p)
  53. end subroutine
  54. subroutine ProcessBopProblemsDueTime(time)
  55. implicit none
  56. integer :: time
  57. if(data%problems%BopProblems%AnnularWash%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%AnnularWash, ChangeAnnularWash, time)
  58. if(data%problems%BopProblems%AnnularFail%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%AnnularFail, ChangeAnnularFail, time)
  59. if(data%problems%BopProblems%AnnularLeak%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%AnnularLeak, ChangeAnnularLeak, time)
  60. if(data%problems%BopProblems%UpperRamWash%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%UpperRamWash, ChangeUpperRamWash, time)
  61. if(data%problems%BopProblems%UpperRamFail%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%UpperRamFail, ChangeUpperRamFail, time)
  62. if(data%problems%BopProblems%UpperRamLeak%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%UpperRamLeak, ChangeUpperRamLeak, time)
  63. if(data%problems%BopProblems%MiddleRamWash%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%MiddleRamWash, ChangeMiddleRamWash, time)
  64. if(data%problems%BopProblems%MiddleRamFail%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%MiddleRamFail, ChangeMiddleRamFail, time)
  65. if(data%problems%BopProblems%MiddleRamLeak%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%MiddleRamLeak, ChangeMiddleRamLeak, time)
  66. if(data%problems%BopProblems%LowerRamWash%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%LowerRamWash, ChangeLowerRamWash, time)
  67. if(data%problems%BopProblems%LowerRamFail%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%LowerRamFail, ChangeLowerRamFail, time)
  68. if(data%problems%BopProblems%LowerRamLeak%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%LowerRamLeak, ChangeLowerRamLeak, time)
  69. if(data%problems%BopProblems%AccumulatorPumpFail%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%AccumulatorPumpFail, ChangeAccumulatorPumpFail, time)
  70. if(data%problems%BopProblems%AccumulatorPumpLeak%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%AccumulatorPumpLeak, ChangeAccumulatorPumpLeak, time)
  71. if(data%problems%BopProblems%AccumulatorSystemFail%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%AccumulatorSystemFail, ChangeAccumulatorSystemFail, time)
  72. if(data%problems%BopProblems%AccumulatorSystemLeak%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%BopProblems%AccumulatorSystemLeak, ChangeAccumulatorSystemLeak, time)
  73. end subroutine
  74. subroutine ProcessBopProblemsDuePumpStrokes(strokes)
  75. implicit none
  76. integer :: strokes
  77. if(data%problems%BopProblems%AnnularWash%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%AnnularWash, ChangeAnnularWash, strokes)
  78. if(data%problems%BopProblems%AnnularFail%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%AnnularFail, ChangeAnnularFail, strokes)
  79. if(data%problems%BopProblems%AnnularLeak%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%AnnularLeak, ChangeAnnularLeak, strokes)
  80. if(data%problems%BopProblems%UpperRamWash%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%UpperRamWash, ChangeUpperRamWash, strokes)
  81. if(data%problems%BopProblems%UpperRamFail%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%UpperRamFail, ChangeUpperRamFail, strokes)
  82. if(data%problems%BopProblems%UpperRamLeak%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%UpperRamLeak, ChangeUpperRamLeak, strokes)
  83. if(data%problems%BopProblems%MiddleRamWash%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%MiddleRamWash, ChangeMiddleRamWash, strokes)
  84. if(data%problems%BopProblems%MiddleRamFail%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%MiddleRamFail, ChangeMiddleRamFail, strokes)
  85. if(data%problems%BopProblems%MiddleRamLeak%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%MiddleRamLeak, ChangeMiddleRamLeak, strokes)
  86. if(data%problems%BopProblems%LowerRamWash%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%LowerRamWash, ChangeLowerRamWash, strokes)
  87. if(data%problems%BopProblems%LowerRamFail%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%LowerRamFail, ChangeLowerRamFail, strokes)
  88. if(data%problems%BopProblems%LowerRamLeak%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%LowerRamLeak, ChangeLowerRamLeak, strokes)
  89. if(data%problems%BopProblems%AccumulatorPumpFail%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%AccumulatorPumpFail, ChangeAccumulatorPumpFail, strokes)
  90. if(data%problems%BopProblems%AccumulatorPumpLeak%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%AccumulatorPumpLeak, ChangeAccumulatorPumpLeak, strokes)
  91. if(data%problems%BopProblems%AccumulatorSystemFail%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%AccumulatorSystemFail, ChangeAccumulatorSystemFail, strokes)
  92. if(data%problems%BopProblems%AccumulatorSystemLeak%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%BopProblems%AccumulatorSystemLeak, ChangeAccumulatorSystemLeak, strokes)
  93. end subroutine
  94. subroutine ProcessBopProblemsDueVolumePumped(volume)
  95. implicit none
  96. real(8) :: volume
  97. if(data%problems%BopProblems%AnnularWash%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%AnnularWash, ChangeAnnularWash, volume)
  98. if(data%problems%BopProblems%AnnularFail%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%AnnularFail, ChangeAnnularFail, volume)
  99. if(data%problems%BopProblems%AnnularLeak%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%AnnularLeak, ChangeAnnularLeak, volume)
  100. if(data%problems%BopProblems%UpperRamWash%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%UpperRamWash, ChangeUpperRamWash, volume)
  101. if(data%problems%BopProblems%UpperRamFail%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%UpperRamFail, ChangeUpperRamFail, volume)
  102. if(data%problems%BopProblems%UpperRamLeak%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%UpperRamLeak, ChangeUpperRamLeak, volume)
  103. if(data%problems%BopProblems%MiddleRamWash%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%MiddleRamWash, ChangeMiddleRamWash, volume)
  104. if(data%problems%BopProblems%MiddleRamFail%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%MiddleRamFail, ChangeMiddleRamFail, volume)
  105. if(data%problems%BopProblems%MiddleRamLeak%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%MiddleRamLeak, ChangeMiddleRamLeak, volume)
  106. if(data%problems%BopProblems%LowerRamWash%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%LowerRamWash, ChangeLowerRamWash, volume)
  107. if(data%problems%BopProblems%LowerRamFail%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%LowerRamFail, ChangeLowerRamFail, volume)
  108. if(data%problems%BopProblems%LowerRamLeak%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%LowerRamLeak, ChangeLowerRamLeak, volume)
  109. if(data%problems%BopProblems%AccumulatorPumpFail%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%AccumulatorPumpFail, ChangeAccumulatorPumpFail, volume)
  110. if(data%problems%BopProblems%AccumulatorPumpLeak%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%AccumulatorPumpLeak, ChangeAccumulatorPumpLeak, volume)
  111. if(data%problems%BopProblems%AccumulatorSystemFail%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%AccumulatorSystemFail, ChangeAccumulatorSystemFail,volume)
  112. if(data%problems%BopProblems%AccumulatorSystemLeak%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%BopProblems%AccumulatorSystemLeak, ChangeAccumulatorSystemLeak, volume)
  113. end subroutine
  114. subroutine ProcessBopProblemsDueDistanceDrilled(distance)
  115. implicit none
  116. real(8) :: distance
  117. if(data%problems%BopProblems%AnnularWash%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%AnnularWash, ChangeAnnularWash, distance)
  118. if(data%problems%BopProblems%AnnularFail%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%AnnularFail, ChangeAnnularFail, distance)
  119. if(data%problems%BopProblems%AnnularLeak%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%AnnularLeak, ChangeAnnularLeak, distance)
  120. if(data%problems%BopProblems%UpperRamWash%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%UpperRamWash, ChangeUpperRamWash, distance)
  121. if(data%problems%BopProblems%UpperRamFail%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%UpperRamFail, ChangeUpperRamFail, distance)
  122. if(data%problems%BopProblems%UpperRamLeak%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%UpperRamLeak, ChangeUpperRamLeak, distance)
  123. if(data%problems%BopProblems%MiddleRamWash%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%MiddleRamWash, ChangeMiddleRamWash, distance)
  124. if(data%problems%BopProblems%MiddleRamFail%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%MiddleRamFail, ChangeMiddleRamFail, distance)
  125. if(data%problems%BopProblems%MiddleRamLeak%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%MiddleRamLeak, ChangeMiddleRamLeak, distance)
  126. if(data%problems%BopProblems%LowerRamWash%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%LowerRamWash, ChangeLowerRamWash, distance)
  127. if(data%problems%BopProblems%LowerRamFail%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%LowerRamFail, ChangeLowerRamFail, distance)
  128. if(data%problems%BopProblems%LowerRamLeak%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%LowerRamLeak, ChangeLowerRamLeak, distance)
  129. if(data%problems%BopProblems%AccumulatorPumpFail%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%AccumulatorPumpFail, ChangeAccumulatorPumpFail, distance)
  130. if(data%problems%BopProblems%AccumulatorPumpLeak%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%AccumulatorPumpLeak, ChangeAccumulatorPumpLeak, distance)
  131. if(data%problems%BopProblems%AccumulatorSystemFail%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%AccumulatorSystemFail, ChangeAccumulatorSystemFail, distance)
  132. if(data%problems%BopProblems%AccumulatorSystemLeak%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%BopProblems%AccumulatorSystemLeak, ChangeAccumulatorSystemLeak, distance)
  133. end subroutine
  134. subroutine ChangeAnnularWash(status)
  135. implicit none
  136. integer, intent (in) :: status
  137. ! ! if(associated(AnnularWashPtr)) call AnnularWashPtr(status)
  138. !if(status == Clear_StatusType) if(print_log) print*,'On_AnnularWash_Clear'
  139. !if(status == Executed_StatusType) if(print_log) print*,'On_AnnularWash_Execute'
  140. endsubroutine
  141. subroutine ChangeAnnularFail(status)
  142. use SimulationVariables
  143. implicit none
  144. integer, intent (in) :: status
  145. ! ! if(associated(AnnularFailPtr)) call AnnularFailPtr(status)
  146. if(status == Clear_StatusType) data%State%Annular%AnnularFailureMalf = 0
  147. if(status == Executed_StatusType) data%State%Annular%AnnularFailureMalf = 1
  148. endsubroutine
  149. subroutine ChangeAnnularLeak(status)
  150. use SimulationVariables
  151. implicit none
  152. integer, intent (in) :: status
  153. ! ! if(associated(AnnularLeakPtr)) call AnnularLeakPtr(status)
  154. if(status == Clear_StatusType) data%State%Annular%AnnularLeakMalf = 0
  155. if(status == Executed_StatusType) data%State%Annular%AnnularLeakMalf = 1
  156. endsubroutine
  157. subroutine ChangeUpperRamWash(status)
  158. implicit none
  159. integer, intent (in) :: status
  160. ! ! if(associated(UpperRamWashPtr)) call UpperRamWashPtr(status)
  161. !if(status == Clear_StatusType) if(print_log) print*,'On_UpperRamWash_Clear'
  162. !if(status == Executed_StatusType) if(print_log) print*,'On_UpperRamWash_Execute'
  163. endsubroutine
  164. subroutine ChangeUpperRamFail(status)
  165. use SimulationVariables
  166. implicit none
  167. integer, intent (in) :: status
  168. ! ! if(associated(UpperRamFailPtr)) call UpperRamFailPtr(status)
  169. if(status == Clear_StatusType) data%State%PipeRam1%UpperRamsFailureMalf = 0
  170. if(status == Executed_StatusType) data%State%PipeRam1%UpperRamsFailureMalf = 1
  171. endsubroutine
  172. subroutine ChangeUpperRamLeak(status)
  173. use SimulationVariables
  174. implicit none
  175. integer, intent (in) :: status
  176. ! ! if(associated(UpperRamLeakPtr)) call UpperRamLeakPtr(status)
  177. if(status == Clear_StatusType) data%State%PipeRam1%UpperRamsLeakMalf = 0
  178. if(status == Executed_StatusType) data%State%PipeRam1%UpperRamsLeakMalf = 1
  179. endsubroutine
  180. subroutine ChangeMiddleRamWash(status)
  181. implicit none
  182. integer, intent (in) :: status
  183. ! ! if(associated(MiddleRamWashPtr)) call MiddleRamWashPtr(status)
  184. !if(status == Clear_StatusType) if(print_log) print*,'On_MiddleRamWash_Clear'
  185. !if(status == Executed_StatusType) if(print_log) print*,'On_MiddleRamWash_Execute'
  186. endsubroutine
  187. subroutine ChangeMiddleRamFail(status)
  188. use SimulationVariables
  189. implicit none
  190. integer, intent (in) :: status
  191. ! if(associated(MiddleRamFailPtr)) call MiddleRamFailPtr(status)
  192. if(status == Clear_StatusType) data%State%ShearRAM%MiddleRamsFailureMalf = 0
  193. if(status == Executed_StatusType) data%State%ShearRAM%MiddleRamsFailureMalf = 1
  194. endsubroutine
  195. subroutine ChangeMiddleRamLeak(status)
  196. use SimulationVariables
  197. implicit none
  198. integer, intent (in) :: status
  199. ! ! if(associated(MiddleRamLeakPtr)) call MiddleRamLeakPtr(status)
  200. if(status == Clear_StatusType) data%State%ShearRAM%MiddleRamsLeakMalf = 0
  201. if(status == Executed_StatusType) data%State%ShearRAM%MiddleRamsLeakMalf = 1
  202. endsubroutine
  203. subroutine ChangeLowerRamWash(status)
  204. implicit none
  205. integer, intent (in) :: status
  206. ! ! if(associated(LowerRamWashPtr)) call LowerRamWashPtr(status)
  207. !if(status == Clear_StatusType) if(print_log) print*,'On_LowerRamWash_Clear'
  208. !if(status == Executed_StatusType) if(print_log) print*,'On_LowerRamWash_Execute'
  209. endsubroutine
  210. subroutine ChangeLowerRamFail(status)
  211. use SimulationVariables
  212. implicit none
  213. integer, intent (in) :: status
  214. ! ! if(associated(LowerRamFailPtr)) call LowerRamFailPtr(status)
  215. if(status == Clear_StatusType) data%State%PipeRam2%LowerRamsFailureMalf = 0
  216. if(status == Executed_StatusType) data%State%PipeRam2%LowerRamsFailureMalf = 1
  217. endsubroutine
  218. subroutine ChangeLowerRamLeak(status)
  219. use SimulationVariables
  220. implicit none
  221. integer, intent (in) :: status
  222. ! if(associated(LowerRamLeakPtr)) call LowerRamLeakPtr(status)
  223. if(status == Clear_StatusType) data%State%PipeRam2%LowerRamsLeakMalf = 0
  224. if(status == Executed_StatusType) data%State%PipeRam2%LowerRamsLeakMalf = 1
  225. endsubroutine
  226. subroutine ChangeAccumulatorPumpFail(status)
  227. use SimulationVariables
  228. implicit none
  229. integer, intent (in) :: status
  230. ! if(associated(AccumulatorPumpFailPtr)) call AccumulatorPumpFailPtr(status)
  231. if(status == Clear_StatusType) data%State%BopStackAcc%AccPupmsFailMalf = 0
  232. if(status == Executed_StatusType) data%State%BopStackAcc%AccPupmsFailMalf = 1
  233. endsubroutine
  234. subroutine ChangeAccumulatorPumpLeak(status)
  235. implicit none
  236. integer, intent (in) :: status
  237. ! if(associated(AccumulatorPumpLeakPtr)) call AccumulatorPumpLeakPtr(status)
  238. !if(status == Clear_StatusType) if(print_log) print*,'On_AccumulatorPumpLeak_Clear'
  239. !if(status == Executed_StatusType) if(print_log) print*,'On_AccumulatorPumpLeak_Execute'
  240. endsubroutine
  241. subroutine ChangeAccumulatorSystemFail(status)
  242. implicit none
  243. integer, intent (in) :: status
  244. ! if(associated(AccumulatorSystemFailPtr)) call AccumulatorSystemFailPtr(status)
  245. !if(status == Clear_StatusType) if(print_log) print*,'On_AccumulatorSystemFail_Clear'
  246. !if(status == Executed_StatusType) if(print_log) print*,'On_AccumulatorSystemFail_Execute'
  247. endsubroutine
  248. subroutine ChangeAccumulatorSystemLeak(status)
  249. implicit none
  250. integer, intent (in) :: status
  251. ! if(associated(AccumulatorSystemLeakPtr)) call AccumulatorSystemLeakPtr(status)
  252. !if(status == Clear_StatusType) if(print_log) print*,'On_AccumulatorSystemLeak_Clear'
  253. !if(status == Executed_StatusType) if(print_log) print*,'On_AccumulatorSystemLeak_Execute'
  254. endsubroutine
  255. end module CBopProblems