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

Code formatting

parent 7678445f
No related branches found
No related tags found
2 merge requests!136Master,!117Engine exchange strays
...@@ -363,7 +363,7 @@ int main(int argc, char *argv[]) { ...@@ -363,7 +363,7 @@ int main(int argc, char *argv[]) {
#if defined(WITH_MPI) #if defined(WITH_MPI)
#if defined(HAVE_PARALLEL_HDF5) #if defined(HAVE_PARALLEL_HDF5)
read_ic_parallel(ICfileName, dim, &parts, &gparts, &Ngas, &Ngpart, &periodic, read_ic_parallel(ICfileName, dim, &parts, &gparts, &Ngas, &Ngpart, &periodic,
myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL); myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL);
#else #else
read_ic_serial(ICfileName, dim, &parts, &gparts, &Ngas, &Ngpart, &periodic, read_ic_serial(ICfileName, dim, &parts, &gparts, &Ngas, &Ngpart, &periodic,
myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL); myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL);
...@@ -397,8 +397,7 @@ int main(int argc, char *argv[]) { ...@@ -397,8 +397,7 @@ int main(int argc, char *argv[]) {
if (!with_gravity) { if (!with_gravity) {
free(gparts); free(gparts);
gparts = NULL; gparts = NULL;
for(size_t k = 0; k < Ngas; ++k) for (size_t k = 0; k < Ngas; ++k) parts[k].gpart = NULL;
parts[k].gpart = NULL;
Ngpart = 0; Ngpart = 0;
#if defined(WITH_MPI) #if defined(WITH_MPI)
N_long[0] = Ngas; N_long[0] = Ngas;
......
...@@ -91,7 +91,7 @@ int cell_unpack(struct pcell *pc, struct cell *c, struct space *s) { ...@@ -91,7 +91,7 @@ int cell_unpack(struct pcell *pc, struct cell *c, struct space *s) {
c->count = pc->count; c->count = pc->count;
c->gcount = pc->gcount; c->gcount = pc->gcount;
c->tag = pc->tag; c->tag = pc->tag;
/* Number of new cells created. */ /* Number of new cells created. */
int count = 1; int count = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment