From d58bef3cbb3acfa1c05b5cf2297dd2af4eae959f Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Thu, 15 Sep 2016 15:11:53 +0100 Subject: [PATCH] Code formatting --- src/parallel_io.c | 5 +++-- src/serial_io.c | 5 +++-- src/single_io.c | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/parallel_io.c b/src/parallel_io.c index 0d7c0d5c3c..66c9203e39 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -487,8 +487,9 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units, } /* Convert the dimensions of the box */ - for (int j = 0; j<3 ; j++) - dim[j] *= units_conversion_factor(ic_units, internal_units, UNIT_CONV_LENGTH); + for (int j = 0; j < 3; j++) + dim[j] *= + units_conversion_factor(ic_units, internal_units, UNIT_CONV_LENGTH); /* Allocate memory to store SPH particles */ *Ngas = N[0]; diff --git a/src/serial_io.c b/src/serial_io.c index ab4a81a8f1..b9ad0fbaa8 100644 --- a/src/serial_io.c +++ b/src/serial_io.c @@ -529,8 +529,9 @@ void read_ic_serial(char* fileName, const struct UnitSystem* internal_units, } /* Convert the dimensions of the box */ - for (int j = 0; j<3 ; j++) - dim[j] *= units_conversion_factor(ic_units, internal_units, UNIT_CONV_LENGTH); + for (int j = 0; j < 3; j++) + dim[j] *= + units_conversion_factor(ic_units, internal_units, UNIT_CONV_LENGTH); /* Now need to broadcast that information to all ranks. */ MPI_Bcast(flag_entropy, 1, MPI_INT, 0, comm); diff --git a/src/single_io.c b/src/single_io.c index 6d752388ad..ceeba4eb80 100644 --- a/src/single_io.c +++ b/src/single_io.c @@ -434,8 +434,9 @@ void read_ic_single(char* fileName, const struct UnitSystem* internal_units, } /* Convert the dimensions of the box */ - for (int j = 0; j<3 ; j++) - dim[j] *= units_conversion_factor(ic_units, internal_units, UNIT_CONV_LENGTH); + for (int j = 0; j < 3; j++) + dim[j] *= + units_conversion_factor(ic_units, internal_units, UNIT_CONV_LENGTH); /* Allocate memory to store SPH particles */ *Ngas = N[0]; -- GitLab