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

Code formatting

parent 74bca7ae
Branches
Tags
2 merge requests!136Master,!116Basic implementation of gparts
...@@ -410,9 +410,9 @@ void writeArrayBackEnd(hid_t grp, char* fileName, FILE* xmfFile, char* name, ...@@ -410,9 +410,9 @@ void writeArrayBackEnd(hid_t grp, char* fileName, FILE* xmfFile, char* name,
* Calls #error() if an error occurs. * Calls #error() if an error occurs.
* *
*/ */
void read_ic_serial(char* fileName, double dim[3], struct part** parts, size_t* N, void read_ic_serial(char* fileName, double dim[3], struct part** parts,
int* periodic, int mpi_rank, int mpi_size, MPI_Comm comm, size_t* N, int* periodic, int mpi_rank, int mpi_size,
MPI_Info info) { MPI_Comm comm, MPI_Info info) {
hid_t h_file = 0, h_grp = 0; hid_t h_file = 0, h_grp = 0;
double boxSize[3] = {0.0, -1.0, -1.0}; double boxSize[3] = {0.0, -1.0, -1.0};
/* GADGET has only cubic boxes (in cosmological mode) */ /* GADGET has only cubic boxes (in cosmological mode) */
......
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
#if defined(HAVE_HDF5) && defined(WITH_MPI) && !defined(HAVE_PARALLEL_HDF5) #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, void read_ic_serial(char* fileName, double dim[3], struct part** parts,
int* periodic, int mpi_rank, int mpi_size, MPI_Comm comm, size_t* N, int* periodic, int mpi_rank, int mpi_size,
MPI_Info info); MPI_Comm comm, MPI_Info info);
void write_output_serial(struct engine* e, struct UnitSystem* us, int mpi_rank, void write_output_serial(struct engine* e, struct UnitSystem* us, int mpi_rank,
int mpi_size, MPI_Comm comm, MPI_Info info); int mpi_size, MPI_Comm comm, MPI_Info info);
......
...@@ -474,9 +474,8 @@ void write_output_single(struct engine* e, struct UnitSystem* us) { ...@@ -474,9 +474,8 @@ void write_output_single(struct engine* e, struct UnitSystem* us) {
/* Number of particles of each type */ /* Number of particles of each type */
const size_t Ndm = Ntot - Ngas; const size_t Ndm = Ntot - Ngas;
int numParticles[NUM_PARTICLE_TYPES] = /* Gadget-2 convention here */ int numParticles[NUM_PARTICLE_TYPES] = /* Gadget-2 convention here */
{Ngas, Ndm, 0}; /* Could use size_t instead */ {Ngas, Ndm, 0}; /* Could use size_t instead */
int numParticlesHighWord[NUM_PARTICLE_TYPES] = int numParticlesHighWord[NUM_PARTICLE_TYPES] = {0};
{0};
/* File name */ /* File name */
char fileName[FILENAME_BUFFER_SIZE]; char fileName[FILENAME_BUFFER_SIZE];
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
#if defined(HAVE_HDF5) && !defined(WITH_MPI) #if defined(HAVE_HDF5) && !defined(WITH_MPI)
void read_ic_single(char* fileName, double dim[3], struct part** parts, 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); 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