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.

CPathGeneration.f90 685 B

2 years ago
2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526
  1. module CPathGeneration
  2. use SimulationVariables !@
  3. use json_module
  4. implicit none
  5. public
  6. contains
  7. subroutine PathGenerationToJson(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,'Path')
  13. ! 2. add member of data type to new node
  14. ! call StringConfigurationToJson(p)
  15. ! call FormationToJson(p)
  16. ! call json%add(p,"",data%Configuration%Formation%Formations(i)%Abrasiveness)
  17. ! 3. add new node to parent
  18. call json%add(parent,p)
  19. end subroutine
  20. end module CPathGeneration