parallel_io.h 1.49 KB
Newer Older
1
2
3
/*******************************************************************************
 * This file is part of SWIFT.
 * Coypright (c) 2012 Matthieu Schaller (matthieu.schaller@durham.ac.uk).
4
 *
5
6
7
8
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
9
 *
10
11
12
13
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
14
 *
15
16
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 *
18
 ******************************************************************************/
19
20
#ifndef SWIFT_PARALLEL_IO_H
#define SWIFT_PARALLEL_IO_H
21

22
23
24
/* Includes. */
#include "part.h"

25
#if defined(HAVE_HDF5) && defined(WITH_MPI) && defined(HAVE_PARALLEL_HDF5)
26

27
28
29
void read_ic_parallel(char* fileName, double dim[3], struct part** parts,
                      int* N, int* periodic, int mpi_rank, int mpi_size,
                      MPI_Comm comm, MPI_Info info);
30

31
32
33
void write_output_parallel(struct engine* e, struct UnitSystem* us,
                           int mpi_rank, int mpi_size, MPI_Comm comm,
                           MPI_Info info);
34
35
36

#endif

37
#endif /* SWIFT_PARALLEL_IO_H */