GADGET-4
lightcone_massmap_data.h
Go to the documentation of this file.
1/*******************************************************************************
2 * \copyright This file is part of the GADGET4 N-body/SPH code developed
3 * \copyright by Volker Springel. Copyright (C) 2014-2020 by Volker Springel
4 * \copyright (vspringel@mpa-garching.mpg.de) and all contributing authors.
5 *******************************************************************************/
6
12#ifndef MMPARTDATA_H
13#define MMPARTDATA_H
14
15#if defined(LIGHTCONE) && defined(LIGHTCONE_MASSMAPS)
16
17#include "../data/constants.h"
18#include "../data/dtypes.h"
19#include "../data/macros.h"
20
21struct lightcone_massmap_data
22{
23 MyFloat Ascale;
24 int PixIndex; /* global healpix index */
25 int Task;
26
27#ifndef LEAN
28 private:
29 MyDouble Mass;
30
31 public:
32#endif
33
34 inline MyDouble getMass(void)
35 {
36#ifdef LEAN
37 return All.PartMass;
38#else
39 return Mass;
40#endif
41 }
42
43 inline void setMass(MyDouble mass)
44 {
45#ifndef LEAN
46 Mass = mass;
47#endif
48 }
49};
50
51#endif
52#endif
global_data_all_processes All
Definition: main.cc:40
float MyDouble
Definition: dtypes.h:87
float MyFloat
Definition: dtypes.h:86