mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07: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
36
external/cosmotool/src/h5_readFlash.hpp
vendored
Normal file
36
external/cosmotool/src/h5_readFlash.hpp
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
/* This file contains the functions that read the data from the HDF5 file
|
||||
* The functions accept the PARAMESH data through arguments.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include "hdf5_flash.h"
|
||||
#include "H5Cpp.h"
|
||||
|
||||
using namespace H5;
|
||||
|
||||
void h5_read_runtime_parameters
|
||||
(H5File* file, /* file handle */
|
||||
double* LBox,
|
||||
int* numPart,
|
||||
double* hubble,
|
||||
double* omegam,
|
||||
double* omegalambda);
|
||||
|
||||
void h5_read_flash3_particles (H5File* file,
|
||||
int* totalparticles,
|
||||
int* localnp,
|
||||
int* particle_offset,
|
||||
float *pos1,
|
||||
float *pos2,
|
||||
float *pos3,
|
||||
float *vel1,
|
||||
float *vel2,
|
||||
float *vel3,
|
||||
int *id);
|
||||
|
||||
void h5_read_flash3_header_info(H5File* file,
|
||||
double* time, /* simulation time */
|
||||
double *redshift); /* simulation redshift */
|
Loading…
Add table
Add a link
Reference in a new issue