20 if(MaxPart >= 1L<<31 || MaxPart < 0)
21 endrun(5,
"Trying to store %ld particles on a single node, more than fit in an int32, not supported\n", MaxPart);
34 message(0,
"Allocated %g MByte for storing %ld particles.\n", bytes / (1024.0 * 1024.0), MaxPart);
46 for (i = 0; i < 3; i++) {
60 double test_random_shift[3] = {0};
61 for (i = 0; i < 3; i++)
63 MPI_Bcast(test_random_shift, 3, MPI_DOUBLE, 0, MPI_COMM_WORLD);
64 for (i = 0; i < 3; i++)
void message(int where, const char *fmt,...)
void endrun(int where, const char *fmt,...)
#define mymalloc(name, size)
struct part_manager_type PartManager[1]
void update_random_offset(struct part_manager_type *PartManager, double *rel_random_shift, double RandomParticleOffset)
void particle_alloc_memory(struct part_manager_type *PartManager, double BoxSize, int64_t MaxPart)
struct particle_data * Base
double CurrentParticleOffset[3]
double get_random_number(uint64_t id)