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.
 
 
 
 
 
 

88 lines
4.7 KiB

  1. # 1 "/home/admin/SimulationCore2/CSharp/Equipments/ControlPanels/CStandPipeManifold.f90"
  2. module CStandPipeManifold
  3. use CStandPipeManifoldVariables
  4. use SimulationVariables
  5. implicit none
  6. public
  7. contains
  8. subroutine StandPipeManifoldFromJson(parent)
  9. type(json_value),pointer :: parent
  10. type(json_core) :: json
  11. type(json_value),pointer :: p,pval
  12. logical::is_found
  13. ! 1. get related root
  14. call json%get(parent,'StandPipeManifold',p)
  15. ! 2. get member of data type from node
  16. call json%get(p,'StandPipeManifoldValve1',pval)
  17. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve1)
  18. call json%get(p,'StandPipeManifoldValve2',pval)
  19. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve2)
  20. call json%get(p,'StandPipeManifoldValve3',pval)
  21. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve3)
  22. call json%get(p,'StandPipeManifoldValve4',pval)
  23. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve4)
  24. call json%get(p,'StandPipeManifoldValve5',pval)
  25. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve5)
  26. call json%get(p,'StandPipeManifoldValve6',pval)
  27. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve6)
  28. call json%get(p,'StandPipeManifoldValve7',pval)
  29. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve7)
  30. call json%get(p,'StandPipeManifoldValve8',pval)
  31. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve8)
  32. call json%get(p,'StandPipeManifoldValve9',pval)
  33. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve9)
  34. call json%get(p,'StandPipeManifoldValve10',pval)
  35. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve10)
  36. call json%get(p,'StandPipeManifoldValve11',pval)
  37. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve11)
  38. call json%get(p,'StandPipeManifoldValve12',pval)
  39. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve12)
  40. call json%get(p,'StandPipeManifoldValve13',pval)
  41. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve13)
  42. call json%get(p,'StandPipeManifoldValve14',pval)
  43. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve14)
  44. call json%get(p,'StandPipeManifoldValve15',pval)
  45. call json%get(pval,data%Equipments%StandPipeManifold%StandPipeManifoldValve15)
  46. ! call json%get(p,'StandPipeGauge1',pval)
  47. ! call json%get(pval,data%Equipments%StandPipeManifold%StandPipeGauge1)
  48. ! call json%get(p,'StandPipeGauge2',pval)
  49. ! call json%get(pval,data%Equipments%StandPipeManifold%StandPipeGauge2)
  50. end subroutine
  51. subroutine StandPipeManifoldToJson(parent)
  52. type(json_value),pointer :: parent
  53. type(json_core) :: json
  54. type(json_value),pointer :: p
  55. ! 1. create new node
  56. call json%create_object(p,'StandPipeManifold')
  57. ! call json%add(p,"StandPipeManifoldValve1",data%Equipments%StandPipeManifold%StandPipeManifoldValve1)
  58. ! call json%add(p,"StandPipeManifoldValve2",data%Equipments%StandPipeManifold%StandPipeManifoldValve2)
  59. ! call json%add(p,"StandPipeManifoldValve3",data%Equipments%StandPipeManifold%StandPipeManifoldValve3)
  60. ! call json%add(p,"StandPipeManifoldValve4",data%Equipments%StandPipeManifold%StandPipeManifoldValve4)
  61. ! call json%add(p,"StandPipeManifoldValve5",data%Equipments%StandPipeManifold%StandPipeManifoldValve5)
  62. ! call json%add(p,"StandPipeManifoldValve6",data%Equipments%StandPipeManifold%StandPipeManifoldValve6)
  63. ! call json%add(p,"StandPipeManifoldValve7",data%Equipments%StandPipeManifold%StandPipeManifoldValve7)
  64. ! call json%add(p,"StandPipeManifoldValve8",data%Equipments%StandPipeManifold%StandPipeManifoldValve8)
  65. ! call json%add(p,"StandPipeManifoldValve9",data%Equipments%StandPipeManifold%StandPipeManifoldValve9)
  66. ! call json%add(p,"StandPipeManifoldValve10",data%Equipments%StandPipeManifold%StandPipeManifoldValve10)
  67. ! call json%add(p,"StandPipeManifoldValve11",data%Equipments%StandPipeManifold%StandPipeManifoldValve11)
  68. ! call json%add(p,"StandPipeManifoldValve12",data%Equipments%StandPipeManifold%StandPipeManifoldValve12)
  69. ! call json%add(p,"StandPipeManifoldValve13",data%Equipments%StandPipeManifold%StandPipeManifoldValve13)
  70. ! call json%add(p,"StandPipeManifoldValve14",data%Equipments%StandPipeManifold%StandPipeManifoldValve14)
  71. ! call json%add(p,"StandPipeManifoldValve15",data%Equipments%StandPipeManifold%StandPipeManifoldValve15)
  72. call json%add(p,"StandPipeGauge1",data%Equipments%StandPipeManifold%StandPipeGauge1)
  73. call json%add(p,"StandPipeGauge2",data%Equipments%StandPipeManifold%StandPipeGauge2)
  74. call json%add(parent,p)
  75. end subroutine
  76. end module CStandPipeManifold