Skip to content

Commit

Permalink
Merge branch 'eve-petsc-module' into 'master'
Browse files Browse the repository at this point in the history
[eve] Use modules for petsc and hdf5.

See merge request ogs/ogs!4852
  • Loading branch information
TomFischer committed Jan 4, 2024
2 parents f4d70c9 + adb11f5 commit 2f85a04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/cmake/DependenciesExternalProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ if(OGS_USE_PETSC)
set(_petsc_source URL ${_petsc_source_file})
elseif(NOT (OGS_PETSC_CONFIG_OPTIONS OR OGS_BUILD_PETSC))
find_package(PkgConfig REQUIRED)
pkg_search_module(PETSC IMPORTED_TARGET PETSc)
pkg_search_module(PETSc IMPORTED_TARGET PETSc)
endif()

if(NOT PETSC_FOUND)
if(NOT TARGET PkgConfig::PETSc)
set(_configure_opts "")
if(NOT "--download-fc" IN_LIST OGS_PETSC_CONFIG_OPTIONS)
list(APPEND _configure_opts --with-fc=0)
Expand Down
8 changes: 5 additions & 3 deletions scripts/env/eve/petsc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ fi
source $DIR/mpi.sh

# TODO build these for foss2022b or remove it:
#module load petsc/3.18.5_foss2020b
#module load vtk/9.2.5_mpi_foss2020b
#module load hdf5/1.14.0_mpi_foss_2020b

export OGS_PETSC_CONFIG_OPTIONS="--download-fc;--download-mumps;--download-hypre;--download-scalapack"
module load petsc/3.19.5_foss2022b
module load hdf5/1.14.2_mpi_foss_2022b

export CMAKE_PREFIX_PATH=/global/apps/petsc/3.19.5.foss_2022b
export HDF5_ROOT=/global/apps/hdf5/1.14.2_mpi

echo -e "Note: If you want to run a simulation on the cluster be aware of the"\
"mixed CPU architecture. There are Sandy-Bridge-based nodes (orte-28,"\
Expand Down

0 comments on commit 2f85a04

Please sign in to comment.