Simulation Core
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CBopProblems.i90 22 KiB

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