Skip to content
Snippets Groups Projects
Commit 00084b45 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent e7d42bcd
No related branches found
No related tags found
1 merge request!128Parallel gpart sort
......@@ -410,9 +410,9 @@ void writeArrayBackEnd(hid_t grp, char* fileName, FILE* xmfFile, char* name,
* Calls #error() if an error occurs.
*
*/
void read_ic_serial(char* fileName, double dim[3], struct part** parts, size_t* N,
int* periodic, int mpi_rank, int mpi_size, MPI_Comm comm,
MPI_Info info) {
void read_ic_serial(char* fileName, double dim[3], struct part** parts,
size_t* N, int* periodic, int mpi_rank, int mpi_size,
MPI_Comm comm, MPI_Info info) {
hid_t h_file = 0, h_grp = 0;
double boxSize[3] = {0.0, -1.0, -1.0};
/* GADGET has only cubic boxes (in cosmological mode) */
......
......@@ -31,9 +31,9 @@
#if defined(HAVE_HDF5) && defined(WITH_MPI) && !defined(HAVE_PARALLEL_HDF5)
void read_ic_serial(char* fileName, double dim[3], struct part** parts, size_t* N,
int* periodic, int mpi_rank, int mpi_size, MPI_Comm comm,
MPI_Info info);
void read_ic_serial(char* fileName, double dim[3], struct part** parts,
size_t* N, int* periodic, int mpi_rank, int mpi_size,
MPI_Comm comm, MPI_Info info);
void write_output_serial(struct engine* e, struct UnitSystem* us, int mpi_rank,
int mpi_size, MPI_Comm comm, MPI_Info info);
......
......@@ -474,9 +474,8 @@ void write_output_single(struct engine* e, struct UnitSystem* us) {
/* Number of particles of each type */
const size_t Ndm = Ntot - Ngas;
int numParticles[NUM_PARTICLE_TYPES] = /* Gadget-2 convention here */
{Ngas, Ndm, 0}; /* Could use size_t instead */
int numParticlesHighWord[NUM_PARTICLE_TYPES] =
{0};
{Ngas, Ndm, 0}; /* Could use size_t instead */
int numParticlesHighWord[NUM_PARTICLE_TYPES] = {0};
/* File name */
char fileName[FILENAME_BUFFER_SIZE];
......
......@@ -27,7 +27,8 @@
#if defined(HAVE_HDF5) && !defined(WITH_MPI)
void read_ic_single(char* fileName, double dim[3], struct part** parts,
struct gpart** gparts, size_t* Ngas, size_t* Ndm, int* periodic);
struct gpart** gparts, size_t* Ngas, size_t* Ndm,
int* periodic);
void write_output_single(struct engine* e, struct UnitSystem* us);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment