Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Elmer/ICE is  Open Source Finite Element Software for Ice Sheet, Glaciers and Ice Flow Modelling.


Table of Contents

References 

...

To Compile Elmer follow this wiki. 


Notes:1. If you are using intel compiler set elmer-opts.cmake to be as follows:

2. Load the relevant modules e.g.

Code Block
$ module list
Currently Loaded Modulefiles:
  1) cmake/3.13.4       2) intel/2018.5.274   3) hpcx/2.4.0         4) mkl/2018.5.274


Build Procedure 


1. Retrieve the source and unpack it. Here we clone the whole repository:

...

Code Block
SET(CMAKE_INSTALL_PREFIX "../elmer-install" CACHE PATH "")
SET(CMAKE_C_COMPILER "icc" CACHE STRING "")
SET(CMAKE_CXX_COMPILER "icpc" CACHE STRING "")
SET(CMAKE_Fortran_COMPILER "ifort" CACHE STRING "")


4. Load the relevant modules e.g.

Code Block
$ module list
Currently Loaded Modulefiles:
  1) cmake/3.13.4       2) intel/2018.5.274   3) hpcx/2.4.0         4) mkl/2018.5.274


5. Generate build scripts

Code Block
$ cd elmer-build

--- For elmer use
$ cmake -C ../elmer-opts.cmake ../elmerfem 

--- For elmer/ice add the bool flag
$ cmake -C ../elmer-opts.cmake ../elmerfem -DWITH_ElmerIce:BOOL=TRUE

...
-- ------------------------------------------------
--   Package filename: elmerfem-8.4-9d3f59b-20190807_Linux-x86_64 
--   Patch version: 8.4-9d3f59b 
-- Configuring done
-- Generating done
-- Build files have been written to: ..... /elmer-build


The cmake tool will now inform if any libraries are missing. The build configuration can be further edited using e.g. ccmake tool or cmake-gui application.


56. Build and install

Code Block
$ make -j8 install


Testing Elmer 


Quick tests

Go to the build directory and run ctest -L quick or ctest -L fast for some basic tests.