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.
 
 
 
 
 
 

30 lines
985 B

  1. module CShoe
  2. use SimulationVariables
  3. use json_module
  4. implicit none
  5. public
  6. contains
  7. subroutine ShoeToJson(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,'Shoe')
  13. ! 2. add member of data type to new node
  14. call json%add(p,"Breakdown",data%Configuration%Shoe%Breakdown)
  15. call json%add(p,"FormationNo",data%Configuration%Shoe%FormationNo)
  16. call json%add(p,"FracturePropagation",data%Configuration%Shoe%FracturePropagation)
  17. call json%add(p,"InactiveFracture",data%Configuration%Shoe%InactiveFracture)
  18. call json%add(p,"LeakOff",data%Configuration%Shoe%LeakOff)
  19. call json%add(p,"ShoeDepth",data%Configuration%Shoe%ShoeDepth)
  20. ! 3. add new node to parent
  21. call json%add(parent,p)
  22. end subroutine
  23. end module CShoe