ATSuite C++
v1.0
Scientific C++ routines originally developed by Alexis Tantet
|
ATSuite C++ is a collection of scientific routines in C++ originally developed by Alexis Tantet for research purpose. These codes are open source in order to promote reproducibility. Visit Alexis' home page for contact.
First the ATSuite_cpp repository should be cloned using git. To do so:
cd $GITDIR
git clone https://github.com/atantet/ATSuite_cpp
Mandatory libraries:
Specific libraries:
mkdir $INCLUDE/ATSuite
cd $GITDIR/ATSuite_cpp cp *.hpp $INCLUDE/ATSuite
#include <ATSuite/atmatrix.hpp>
cd $GITDIR/ATSuite_cpp git pull
cp *.hpp $INCLUDE/ATSuite
If INCLUDE is not a system directory such as /usr/include/ or /usr/local/include/ then either it should be added to CPLUS_INCLUDE_PATH or at compilation using -I$INCLUDE. E.g.
g++ -c -I$INCLUDE source.cpp
When linking, GSL should be linked by added -lgsl. If GSL's directory is not a system one or in LIBRARY_PATH then -L$GSLDIR should be added. E.g.
g++ -L$GSLDIR source.o -lgsl
If OpenMP is to be used, then WITH_OMP should be set to 1, -fopenmp -DWITH_OMP=$WITH_OMP used when compiling and -lgomp when linking.
g++ -c -fopenmp -DWITH_OMP=$WITH_OMP -I$INCLUDE source.cpp g++ -L$GSLDIR source.o -lgsl -lgomp
These codes are developed for research purpose. No warranty is given regarding their robustess.