diff --git a/src/parallel_io.c b/src/parallel_io.c index 5cd6a4921a25db012b3e810c499ec151ee28391f..e429ff641961da342187f0c297eba8041cfcc51a 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -431,11 +431,12 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units, *flag_entropy = flag_entropy_temp[0]; readAttribute(h_grp, "BoxSize", DOUBLE, boxSize); readAttribute(h_grp, "NumPart_Total", LONGLONG, numParticles); - readAttribute(h_grp, "NumPart_Total_HighWord", LONGLONG, numParticles_highWord); + readAttribute(h_grp, "NumPart_Total_HighWord", LONGLONG, + numParticles_highWord); for (int ptype = 0; ptype < NUM_PARTICLE_TYPES; ++ptype) - N_total[ptype] = (numParticles[ptype]) + - (numParticles_highWord[ptype] << 32); + N_total[ptype] = + (numParticles[ptype]) + (numParticles_highWord[ptype] << 32); dim[0] = boxSize[0]; dim[1] = (boxSize[1] < 0) ? boxSize[0] : boxSize[1]; diff --git a/src/serial_io.c b/src/serial_io.c index a9be44c21dce84834397c7652e5ebb7d9c4876e4..eaf5541992981463213db9685290fa9f624a4130 100644 --- a/src/serial_io.c +++ b/src/serial_io.c @@ -483,11 +483,12 @@ void read_ic_serial(char* fileName, const struct UnitSystem* internal_units, *flag_entropy = flag_entropy_temp[0]; readAttribute(h_grp, "BoxSize", DOUBLE, boxSize); readAttribute(h_grp, "NumPart_Total", LONGLONG, numParticles); - readAttribute(h_grp, "NumPart_Total_HighWord", LONGLONG, numParticles_highWord); + readAttribute(h_grp, "NumPart_Total_HighWord", LONGLONG, + numParticles_highWord); for (int ptype = 0; ptype < NUM_PARTICLE_TYPES; ++ptype) - N_total[ptype] = (numParticles[ptype]) + - (numParticles_highWord[ptype] << 32); + N_total[ptype] = + (numParticles[ptype]) + (numParticles_highWord[ptype] << 32); dim[0] = boxSize[0]; dim[1] = (boxSize[1] < 0) ? boxSize[0] : boxSize[1];