-
- Downloads
Merge branch 'serial_io' into 'master'
Allow the code to do i/o in serial while MPI is activated Quite a big change. Main goal is to solve issue #29 and hence offer a workaround #22. The old non-MPI code is now in single_io.[ch] and is called when WITH_MPI is not defined. The old MPI code with parallel-HDF5 is called when WITH_MPI and HAVE_PARALLEL_HDF5 are both defined. The new MPI code is in serial_io.[ch] and is celled when WITH_MPI is defined but HAVE_PARALLEL_HDF5 is not. In this serial mode, the code forces the different MPI ranks to write to the same file one after the other, appending their particles at the end of the pre-existing set of particles. This merge request also corrects issue #27 and a bug in the attributes of the arrays in HDF5 that got the wrong units. SWIFT now runs with Platform-MPI !! See merge request !14 Former-commit-id: 8c6aaed9c5fbc30e205a7246838b7013a7be4bdc
No related branches found
No related tags found
Showing
- examples/test.c 43 additions, 25 deletionsexamples/test.c
- src/Makefile.am 2 additions, 2 deletionssrc/Makefile.am
- src/parallel_io.c 22 additions, 16 deletionssrc/parallel_io.c
- src/parallel_io.h 1 addition, 1 deletionsrc/parallel_io.h
- src/serial_io.c 368 additions, 195 deletionssrc/serial_io.c
- src/serial_io.h 3 additions, 3 deletionssrc/serial_io.h
- src/single_io.c 503 additions, 0 deletionssrc/single_io.c
- src/single_io.h 28 additions, 0 deletionssrc/single_io.h
- src/swift.h 1 addition, 0 deletionssrc/swift.h
- src/units.c 2 additions, 3 deletionssrc/units.c
- src/units.h 5 additions, 5 deletionssrc/units.h
Loading
Please register or sign in to comment