mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-07 08:41:11 +00:00
Imported Healpix, cfitsio, cosmotool. Added cmake tool to build dependencies (cfitsio, hdf5, netcdf, boost, healpix, gsl, ..). Adjusted CMakeLists.txt
This commit is contained in:
parent
4bfb62f177
commit
51f6798f88
241 changed files with 243806 additions and 0 deletions
35
external/cosmotool/src/cic.hpp
vendored
Normal file
35
external/cosmotool/src/cic.hpp
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
#ifndef __CICFILTER_HPP
|
||||
#define __CICFILTER_HPP
|
||||
|
||||
#include "CosmoTool/config.hpp"
|
||||
#include <inttypes.h>
|
||||
|
||||
using namespace CosmoTool;
|
||||
|
||||
typedef float CICType;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
float mass;
|
||||
Coordinates coords;
|
||||
} CICParticles;
|
||||
|
||||
class CICFilter
|
||||
{
|
||||
public:
|
||||
CICFilter(uint32_t resolution, double spatialLen);
|
||||
~CICFilter();
|
||||
|
||||
void resetMesh();
|
||||
void putParticles(CICParticles *particles, uint32_t N);
|
||||
|
||||
void getDensityField(CICType*& field, uint32_t& res);
|
||||
|
||||
protected:
|
||||
CICType *densityGrid;
|
||||
double spatialLen;
|
||||
uint32_t totalSize;
|
||||
uint32_t szGrid;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue