#include "types.h"
#include "utils/peano.h"
Go to the source code of this file.
|
#define | P PartManager->Base |
|
#define | NEAREST(x, BoxSize) (((x)>0.5*BoxSize)?((x)-BoxSize):(((x)<-0.5*BoxSize)?((x)+BoxSize):(x))) |
|
◆ NEAREST
#define NEAREST |
( |
|
x, |
|
|
|
BoxSize |
|
) |
| (((x)>0.5*BoxSize)?((x)-BoxSize):(((x)<-0.5*BoxSize)?((x)+BoxSize):(x))) |
◆ DMAX()
static double DMAX |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inlinestatic |
◆ DMIN()
static double DMIN |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inlinestatic |
◆ IMAX()
static int IMAX |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
|
inlinestatic |
◆ IMIN()
static int IMIN |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
|
inlinestatic |
◆ particle_alloc_memory()
void particle_alloc_memory |
( |
struct part_manager_type * |
PartManager, |
|
|
double |
BoxSize, |
|
|
int64_t |
MaxPart |
|
) |
| |
Definition at line 14 of file partmanager.c.
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);
void message(int where, const char *fmt,...)
void endrun(int where, const char *fmt,...)
#define mymalloc(name, size)
struct part_manager_type PartManager[1]
struct particle_data * Base
double CurrentParticleOffset[3]
References part_manager_type::Base, part_manager_type::BoxSize, part_manager_type::CurrentParticleOffset, endrun(), part_manager_type::MaxPart, message(), mymalloc, part_manager_type::NumPart, and PartManager.
Referenced by init_alloc_particle_slot_memory(), setup_density(), and setup_particles().
◆ update_random_offset()
void update_random_offset |
( |
struct part_manager_type * |
PartManager, |
|
|
double * |
rel_random_shift, |
|
|
double |
RandomParticleOffset |
|
) |
| |
◆ PartManager