Simulation Core
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

45 líneas
2.4 KiB

  1. module CBopStack
  2. use SimulationVariables
  3. use json_module
  4. implicit none
  5. public
  6. contains
  7. subroutine BopStackToJson(parent)
  8. type(json_value),pointer :: parent
  9. type(json_core) :: json
  10. type(json_value),pointer :: p
  11. ! 1. create new node
  12. call json%create_object(p,'BopStack')
  13. ! 2. add member of data type to new node
  14. call json%add(p,"AboveAnnularHeight",data%Configuration%BopStack%AboveAnnularHeight)
  15. call json%add(p,"AnnularPreventerClose",data%Configuration%BopStack%AnnularPreventerClose)
  16. call json%add(p,"AnnularPreventerHeight",data%Configuration%BopStack%AnnularPreventerHeight)
  17. call json%add(p,"AnnularPreventerOpen",data%Configuration%BopStack%AnnularPreventerOpen)
  18. call json%add(p,"AnnularStringDrag",data%Configuration%BopStack%AnnularStringDrag)
  19. call json%add(p,"BlindRamClose",data%Configuration%BopStack%BlindRamClose)
  20. call json%add(p,"BlindRamHeight",data%Configuration%BopStack%BlindRamHeight)
  21. call json%add(p,"BlindRamOpen",data%Configuration%BopStack%BlindRamOpen)
  22. call json%add(p,"ChokeClose",data%Configuration%BopStack%ChokeClose)
  23. call json%add(p,"ChokeLineId",data%Configuration%BopStack%ChokeLineId)
  24. call json%add(p,"ChokeLineLength",data%Configuration%BopStack%ChokeLineLength)
  25. call json%add(p,"ChokeOpen",data%Configuration%BopStack%ChokeOpen)
  26. call json%add(p,"GroundLevel",data%Configuration%BopStack%GroundLevel)
  27. call json%add(p,"KillClose",data%Configuration%BopStack%KillClose)
  28. call json%add(p,"KillHeight",data%Configuration%BopStack%KillHeight)
  29. call json%add(p,"KillOpen",data%Configuration%BopStack%KillOpen)
  30. call json%add(p,"LowerRamClose",data%Configuration%BopStack%LowerRamClose)
  31. call json%add(p,"LowerRamHeight",data%Configuration%BopStack%LowerRamHeight)
  32. call json%add(p,"LowerRamOpen",data%Configuration%BopStack%LowerRamOpen)
  33. call json%add(p,"RamStringDrag",data%Configuration%BopStack%RamStringDrag)
  34. call json%add(p,"UpperRamClose",data%Configuration%BopStack%UpperRamClose)
  35. call json%add(p,"UpperRamHeight",data%Configuration%BopStack%UpperRamHeight)
  36. call json%add(p,"UpperRamOpen",data%Configuration%BopStack%UpperRamOpen)
  37. ! 3. add new node to parent
  38. call json%add(parent,p)
  39. end subroutine
  40. end module CBopStack