17#if defined(LIGHTCONE) && defined(LIGHTCONE_MASSMAPS)
21#include "../data/constants.h"
22#include "../data/dtypes.h"
23#include "../data/intposconvert.h"
24#include "../data/lightcone_massmap_data.h"
25#include "../data/macros.h"
26#include "../data/mymalloc.h"
27#include "../mpi_utils/setcomm.h"
28#include "../system/system.h"
29#include "../time_integration/timestep.h"
30#include "gadgetconfig.h"
32class mmparticles :
public setcomm
35 mmparticles(MPI_Comm comm) :
setcomm(comm) {}
44 lightcone_massmap_data *P;
46 void allocate_memory(
void)
48 P = (lightcone_massmap_data *)
Mem.mymalloc_movable_clear(&P,
"P", MaxPart *
sizeof(lightcone_massmap_data));
51 void reallocate_memory_maxpart(
int maxpartNew)
55 P = (lightcone_massmap_data *)
Mem.myrealloc_movable(P, MaxPart *
sizeof(lightcone_massmap_data));
58 Terminate(
"NumPart=%d > MaxPart=%d", NumPart, MaxPart);