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.

CHoistingProblems.f90 1.7 KiB

1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. module CHoistingProblems
  2. use CHoistingProblemsVariables
  3. implicit none
  4. public
  5. contains
  6. ! Input routines
  7. subroutine SetMotorFail(v)
  8. !DEC$ ATTRIBUTES DLLEXPORT :: SetMotorFail
  9. !DEC$ ATTRIBUTES ALIAS: 'SetMotorFail' :: SetMotorFail
  10. implicit none
  11. type(CProblem), intent(in) :: v
  12. HoistingProblems%MotorFail = SetDue(v, ChangeMotorFail)
  13. #ifdef deb
  14. print*, 'MotorFail%ProblemType=', HoistingProblems%MotorFail%ProblemType
  15. print*, 'MotorFail%StatusType=', HoistingProblems%MotorFail%StatusType
  16. print*, 'MotorFail%Value=', HoistingProblems%MotorFail%Value
  17. #endif
  18. end subroutine
  19. subroutine SetClutchEngage(v)
  20. !DEC$ ATTRIBUTES DLLEXPORT :: SetClutchEngage
  21. !DEC$ ATTRIBUTES ALIAS: 'SetClutchEngage' :: SetClutchEngage
  22. implicit none
  23. type(CProblem), intent(in) :: v
  24. HoistingProblems%ClutchEngage = SetDue(v, ChangeClutchEngage)
  25. #ifdef deb
  26. print*, 'ClutchEngage%ProblemType=', HoistingProblems%ClutchEngage%ProblemType
  27. print*, 'ClutchEngage%StatusType=', HoistingProblems%ClutchEngage%StatusType
  28. print*, 'ClutchEngage%Value=', HoistingProblems%ClutchEngage%Value
  29. #endif
  30. end subroutine
  31. subroutine SetClutchDisengage(v)
  32. !DEC$ ATTRIBUTES DLLEXPORT :: SetClutchDisengage
  33. !DEC$ ATTRIBUTES ALIAS: 'SetClutchDisengage' :: SetClutchDisengage
  34. implicit none
  35. type(CProblem), intent(in) :: v
  36. HoistingProblems%ClutchDisengage = SetDue(v, ChangeClutchDisengage)
  37. #ifdef deb
  38. print*, 'ClutchDisengage%ProblemType=', HoistingProblems%ClutchDisengage%ProblemType
  39. print*, 'ClutchDisengage%StatusType=', HoistingProblems%ClutchDisengage%StatusType
  40. print*, 'ClutchDisengage%Value=', HoistingProblems%ClutchDisengage%Value
  41. #endif
  42. end subroutine
  43. end module CHoistingProblems