INM ParLib v2.2 ------------------------------------------------------------------------------- authors: Val Gloukhov Institute of Numerical Mathematics of the Russian Academy of Sciences (gluhoff@inm.ras.ru) Evgeny Mortikov Research Computing Center of Lomonosov Moscow State University (evgeny.mortikov@gmail.com) Andrey Debolskiy Research Computing Center of Lomonosov Moscow State University (and.debol@srcc.msu.ru) latest update: 22/06/2020 ------------------------------------------------------------------------------- INM ParLib is a high level library facilitating the coding of finite difference and spectral approximation weather and climate prediction models on distributed memory parallel computers. Since version 2.3 parlib is built using cmake to do so first clone this repo: ``` git clone http://tesla.parallel.ru/debol/parlib.git ``` to build do: ``` mkdir build && cd build ``` then export your compilers ``` export CC=your_C_compiler export CXX=your_CXX_compiler export FC=your_fortran_compiler ``` then run cmake to configure build ``` cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/parlib/to -s ../parlib ``` on some clusters higher versions of cmake are aliased with cmake3 (f.ex. Lomonosov-1,2), so use `cmake3` in that case. then compile,test and install parlib into directory specified by `CMAKE_INSTALL_PREFIX` ``` make all make test make install ``` By default cmake will build both shared and static libraries as well as fortran wrapper libraries. to toggle which libraries to build use these cmake variables: `BUILD_SHARED_LIBS`,`BUILD_STATIC_LIBS`,`BUILD_FORT_LIBS`. For example: ``` cmake -DBUILD_SHARED_LIBS=OFF -BUILD_STATIC_LIBS=ON -DBUILD_FORT_LIBS=OFF -s ../parlib ``` will build only C static library. You can check other configuration options either by using cmake-gui or using `cmake -LAH `.