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.
 
 
 
 
 
 

79 lines
2.4 KiB

  1. module KillLineMain
  2. implicit none
  3. public
  4. contains
  5. ! subroutine KillLine_Setup()
  6. ! ! use CSimulationVariables
  7. ! implicit none
  8. ! call OnSimulationInitialization%Add(KillLine_Init)
  9. ! call OnSimulationStop%Add(KillLine_Init)
  10. ! call OnKillLineStep%Add(KillLine_Step)
  11. ! call OnKillLineOutput%Add(KillLine_Output)
  12. ! call OnKillLineMain%Add(KillLineMainBody)
  13. ! end subroutine
  14. ! subroutine KillLine_Init
  15. ! implicit none
  16. ! end subroutine KillLine_Init
  17. subroutine KillLine_Step
  18. use VARIABLES
  19. implicit none
  20. if (KillLine%finished/=0) then
  21. call KILL_LINE
  22. if (KillLine%IsOpening .or. KillLine%IsClosing) then
  23. if(KillLine%finished==0) then
  24. call KILL_LINE_SUB !only body of loop2
  25. endif
  26. endif
  27. else
  28. call KILL_LINE_SUB
  29. endif
  30. end subroutine KillLine_Step
  31. ! subroutine KillLine_Output
  32. ! implicit none
  33. ! end subroutine KillLine_Output
  34. ! subroutine KillLineMainBody
  35. ! USE ifport
  36. ! USE ifmt
  37. ! ! use CSimulationVariables
  38. ! ! USE BOP
  39. ! implicit none
  40. ! INTEGER :: KillLineDuration
  41. ! integer,dimension(8) :: KillLineStartTime , KillLineEndTime
  42. ! ! CALL BOP_StartUp()
  43. ! loop1: DO
  44. ! CALL DATE_AND_TIME(values=KillLineStartTime)
  45. ! CALL KILL_LINE
  46. ! CALL DATE_AND_TIME(values=KillLineEndTime)
  47. ! KillLineDuration = 3600000 * (KillLineEndTime(5) - KillLineStartTime(5)) + 60000 * (KillLineEndTime(6) - KillLineStartTime(6)) + 1000 * (KillLineEndTime(7) - KillLineStartTime(7)) + (KillLineEndTime(8) - KillLineStartTime(8))
  48. ! if (KillLineDuration < 100) then
  49. ! call sleepqq(100 - KillLineDuration)
  50. ! ELSE
  51. ! WRITE (*,*) 'KillLine BOP run duration exceeded 100 ms and =', KillLineDuration
  52. ! end if
  53. ! IF (IsStopped==.true.) THEN
  54. ! EXIT loop1
  55. ! ENDIF
  56. ! ENDDO loop1
  57. ! ! CALL DEALLOCATE_ARRAYS()
  58. ! end subroutine KillLineMainBody
  59. end module KillLineMain