MeteoSwiss-APN / serialbox

Data serialization library and tools for C/C++ and Fortran
BSD 2-Clause "Simplified" License
2 stars 6 forks source link

Handle MPI rank in the fortran lib #44

Closed clementval closed 8 years ago

clementval commented 8 years ago

Add an option to !$ser init to pass the MPI rank of the process instead of dealing with concatenation and so on by the user.

Example in cosmo

!$ser init directory='.' prefix='Field' mpi_rank=my_cart_id

A suffix is applied to the prefix directly in utils_ppser.f90

pp_ser.py does not require any changes as it can handle

clementval commented 8 years ago

Will fix issue #43

andyspiros commented 8 years ago

Looks good. Can you update the ChangeLog?

clementval commented 8 years ago

Did it :-)

clementval commented 8 years ago

@andyspiros I used I0 which use the minimum number of char to represent the integer.

andyspiros commented 8 years ago

Good to know, in case I need to join all the existing computers in the world and serialize with one rank per core :smiley:. Perfect, you can merge.