Simulation Core
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

CKickProblems.f90 1.8 KiB

1 år sedan
1 år sedan
1 år sedan
1 år sedan
1 år sedan
1 år sedan
1 år sedan
1 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. module CKickProblems
  2. use SimulationVariables
  3. implicit none
  4. public
  5. !constants
  6. integer :: Gas_FluidType = 0
  7. integer :: Oil_FluidType = 1
  8. integer :: Water_FluidType = 2
  9. contains
  10. subroutine ProcessKickProblemsDueTime(time)
  11. implicit none
  12. integer :: time
  13. if(data%problems%KickProblems%Kick%ProblemType == Time_ProblemType) call ProcessDueTime(data%problems%KickProblems%Kick, ChangeKick, time)
  14. end subroutine
  15. subroutine ProcessKickProblemsDuePumpStrokes(strokes)
  16. implicit none
  17. integer :: strokes
  18. if(data%problems%KickProblems%Kick%ProblemType == PumpStrokes_ProblemType) call ProcessDuePumpStrokes(data%problems%KickProblems%Kick, ChangeKick, strokes)
  19. end subroutine
  20. subroutine ProcessKickProblemsDueVolumePumped(volume)
  21. implicit none
  22. real(8) :: volume
  23. if(data%problems%KickProblems%Kick%ProblemType == VolumePumped_ProblemType) call ProcessDueVolumePumped(data%problems%KickProblems%Kick, ChangeKick, volume)
  24. end subroutine
  25. subroutine ProcessKickProblemsDueDistanceDrilled(distance)
  26. implicit none
  27. real(8) :: distance
  28. if(data%problems%KickProblems%Kick%ProblemType == DistanceDrilled_ProblemType) call ProcessDueDistanceDrilled(data%problems%KickProblems%Kick, ChangeKick, distance)
  29. end subroutine
  30. subroutine ChangeKick(status)
  31. implicit none
  32. integer, intent (in) :: status
  33. ! if(associated(data%problems%KickProblems%KickPtr)) call data%problems%KickProblems%KickPtr(status)
  34. !if(status == Clear_StatusType) print*,'On_Kick_Clear'
  35. !if(status == Executed_StatusType) print*,'On_Kick_Execute'
  36. endsubroutine
  37. end module CKickProblems