Skip to content

jonasohland/shgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shgen

Installing

Currently, the only way to install shgen is to build it from source. If you are a macOS and Homebrew user, you can let homebrew build it for you, by using my tap:

$ brew tap jonasohland/things
$ brew install shgen

To build the tool you will need a working C++11 build environment and CMake. Please clone the repository using git and don't use GitHubs Dowload ZIP function:

$ git clone --recurse-submodules https://github.com/jonasohland/shgen

Generate build files for your platform by running

$ cmake $PATH_TO_SHGEN_SOURCE -DCMAKE_BUILD_TYPE=Release

in a build directory of your choosing. Avoid running this command directly at the root of the shgen source tree.

You can then build and install shgen:

$ cmake --build . --target install

Usage

The basic usage is as follows:

$ shgen [options] [header_output_file] [source_output_file]

where options are:

-?, -h, --help                     display usage information
-v, --version                      Print version and exit
-H, --header-only                  Output only a header file
-s, --sse                          Use SSE instructions
-C, --condon-shortley              Include condon shortley phase thingy
-L, --max-L <max-L>                Maximum value for L
-l, --min-L <min-L>                Minimum value for L
-d, --double                       Double precision
-f, --float                        Single precision
-t, --template                     Templated version
-c, --c-mode                       Emit plain and simple c, without all the template stuff
-7, --cxx-17                       Enable C++17 specific stuff
-e, --line-ending <line-ending>    Line endings (LF/CRLF)

About

Real Spherical Harmonics code-generator with SSE, AVX and AVX512 support

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors