Skip to content
/ s2hat Public

C and Fortran for spherical harmonics operations

License

Notifications You must be signed in to change notification settings

B3Dcmb/s2hat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

This repo contains the project S2HAT

They are built using cmake (>= 3.18). Try cmake --help in case of doubt.

S2HAT

In a generic use, S2HAT requires few libraries:

  • MPI_C
  • MPI_Fortran

Then, one of the two following :

  • FFTW3
  • HEALPIX which must be compiled in FORTRAN

Ensure these libraries are available on your system. You may as weel explicit them in a file .bash_profile_s2hat to load before using cmake, where you explicitely give HEALPIX_DIR, the path to find the healpix libraries and headers (especially for the Fortran one) if you chose Healpix for the fourier transform calculations.

Note : For Mac M1, you may install FFTW using Homebrew

To build the library and install it at a given location (prefix), execute the commands:

cmake -S . -B build --install-prefix <path> -DBUILD_x86_64=ON
cmake --build build
cmake --install build

or

cmake -S . -B build -DCMAKE_INSTALL_PREFIX=<prefix>
cmake --build build
cmake --install build

About

C and Fortran for spherical harmonics operations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published