NOAA-GFDL/FMS

Yaml parser:: Have one core read the yaml file

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
Currently each core opens and parses the yaml file

Describe the solution you'd like
It will be good to have one root pe read and parse the file and broadcast the struct to the other ranks

This will probably required passing in a communicator from the fortran side and creating an mpi_type with the struct
https://rookiehpc.org/mpi/docs/mpi_type_create_struct/index.html

Describe alternatives you've considered
Leave it as it, but having only one reader will have less impact on the file system

Additional context
N/A