mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-07 00:31: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
20
external/cosmotool/src/mach.hpp
vendored
Normal file
20
external/cosmotool/src/mach.hpp
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef __COSMO_MACHINE_TEST_HPP
|
||||
#define __COSMO_MACHINE_TEST_HPP
|
||||
|
||||
#include <iostream>
|
||||
|
||||
template<typename T>
|
||||
T mach_epsilon()
|
||||
{
|
||||
T eps = (T)1;
|
||||
|
||||
do
|
||||
{
|
||||
eps /= 2;
|
||||
}
|
||||
while ((T)(1 + (eps/2)) != (T)1);
|
||||
|
||||
return eps;
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue