diff --git a/examples/main.c b/examples/main.c index fa4186fc0b34a456bcef243fd596905a197f920f..09deb8fe9cd6f205fcdadf48c25c454b3fe12bb7 100644 --- a/examples/main.c +++ b/examples/main.c @@ -1099,7 +1099,6 @@ int main(int argc, char *argv[]) { if (s.periodic) gravity_exact_force_ewald_init(e.s->dim[0]); #endif - if (!restart) { #ifdef WITH_MPI diff --git a/src/random.h b/src/random.h index d51885a92f5b0d1ce7ed62df762de26b7627c88d..fb33bb2ef5fbe6ff8d395f111542fb9ca8312a09 100644 --- a/src/random.h +++ b/src/random.h @@ -24,8 +24,13 @@ #include "../config.h" /* Standard header */ +#include <errno.h> +#include <ieee754.h> +#include <limits.h> #include <stdint.h> #include <stdlib.h> +#include <string.h> +#include <sys/types.h> /** * @brief The categories of random number generated. @@ -50,11 +55,6 @@ enum random_number_type { random_number_BH_swallow = 4947009007LL }; -#include <errno.h> -#include <ieee754.h> -#include <limits.h> -#include <sys/types.h> - /* Inline the default RNG functions to avoid costly function calls. These functions are minor modifications, but functional equivalents, of their glibc counterparts. */