diff --git a/examples/main.c b/examples/main.c index a592c974feda86fd7c6537017a7b31480f4a1bc2..99f673307ab43b5e55991591177da30f4c212f63 100644 --- a/examples/main.c +++ b/examples/main.c @@ -358,8 +358,8 @@ int main(int argc, char *argv[]) { &periodic, &flag_entropy_ICs, myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL, dry_run); #else - read_ic_serial(ICfileName, &us, dim, &parts, &gparts, &Ngas, &Ngpart, &periodic, - &flag_entropy_ICs, myrank, nr_nodes, MPI_COMM_WORLD, + read_ic_serial(ICfileName, &us, dim, &parts, &gparts, &Ngas, &Ngpart, + &periodic, &flag_entropy_ICs, myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL, dry_run); #endif #else diff --git a/src/common_io.c b/src/common_io.c index 7108ff8d9209011cba5e131220d8e33fb1de00cf..d3590ae402487eb2f605a1cf3f5722f86704ad88 100644 --- a/src/common_io.c +++ b/src/common_io.c @@ -120,7 +120,7 @@ size_t sizeOfType(enum DATA_TYPE type) { * Returns an error if the type is not FLOAT or DOUBLE */ int isDoublePrecision(enum DATA_TYPE type) { - + switch (type) { case FLOAT: return 0;