Skip to content
Norihiro Watanabe edited this page Aug 25, 2015 · 2 revisions

Compiling OGS-MKL on envinf1

-1. create a symlink on the same directory level where your OGS5-source directory is located to let them automatically be found by CMake:

ln -s /opt/ogs/ogs5-libs Libs

-2. configure MKL run this:

cmake ../sources/ -DOGS_FEM_MKL=ON -DPARALLEL_USE_OPENMP=ON -DMKL_DIR=/opt/intel/mkl -DOGS_DONT_USE_VTK=ON

Compiling OGS-PETSc on envinf1

export MODULEPATH=/global/apps/modulefiles:$MODULEPATH;
#module load openmpi/gcc/1.8.2-1_gcc_4.8.1_CentOS6
#module load petsc/3.5_maint_gcc_4.8.1-3_openmpi_gcc_1.8.2-1_gcc_4.8.1_CentOS6_envinf 
module unload openmpi/gcc/1.8.2-1_gcc_4.8.1_CentOS6
module load petsc/3.4.4-1_gcc_4.8.1_openmpi_1.7.3
module load lapack/3.5.0-1_gcc_4.8.1

mkdir build_petsc; cd build_petsc
cmake -DOGS_FEM_PETSC=ON  -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources
Clone this wiki locally