mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +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
19
external/cosmotool/sample/testPool.cpp
vendored
Normal file
19
external/cosmotool/sample/testPool.cpp
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "pool.hpp"
|
||||
|
||||
using namespace CosmoTool;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
MemoryPool<int> pool(1024);
|
||||
int **j = new int *[3000];
|
||||
|
||||
for (int i = 0; i < 3000; i++)
|
||||
{
|
||||
j[i] = pool.alloc();
|
||||
j[i][0] = i;
|
||||
}
|
||||
|
||||
pool.free_all();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue