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.

CStandPipeManifold.i90 4.7 KiB

1 år sedan
1 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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