Copyright Ulf Ekstrom uekstrom@gmail.com and contributors 2009-2010. See http://admol.org/xcfun for more information.
The main interface is in include/xcfun.h
(or fortran/xc_fun_module.f90
for Fortran bindings).
The library is licensed under the LGPL license version 3, see COPYING.LESSER for more information.
Check that XC_MAX_ORDER
is defined to the highest order derivatives
you need (and not higher) in src/config.h~. Using a too large value for
XC_MAX_ORDER` makes compilation slow and the generated code huge.
Edit the Makefile that matches your compiler (Makefile.gcc or Makefile.intel or ...) to set CXX (C++ compiler) and flags and run
$ make -f Makefile.gcc
(or using the corresponding Makefile)
This will create the library file lib/libxcfun.so
Edit the Makefile that matches your compiler
(Makefile.gcc or Makefile.intel or ...)
and add -DNDEBUG
to the compiler flags. Add optimization
compiler options. Make sure your compiler performs inlining
(-O3 with gcc).
The Travis CI builds are triggered only when pushing to the master
branch.
-
Ubuntu 12.04 LTS 64-bit with Python 2.7.3 and CMake 3.3.2 this is the environment offered by Travis CI pulling in various PPA. The following compilers are used, both in release and debug:
- GCC 4.6
- GCC 4.7
- GCC 4.8
- GCC 4.9
- GCC 5.1
- Clang 3.5 and GFortran 4.6
- Clang 3.6 and GFortran 4.6
- Clang 3.7 and GFortran 4.6
- Clang 3.8 and GFortran 4.6
-
Mac OS X 10.9.5 with Python 2.7.10 and CMake 3.2.3 this is the environment offered by Travis CI The following compilers are used, both in release and debug:
- XCode 6.4 with Clang and GFortran 5.2
- XCode 6.4 with GCC 5.2
- XCode 7.0 with Clang and GFortran 5.2
- XCode 7.0 with GCC 5.2