Skip to content
Snippets Groups Projects
Commit 86b037ae authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Eve module Lmod syntax.

parent 959e86df
No related branches found
No related tags found
No related merge requests found
......@@ -393,6 +393,7 @@ pipeline {
agent { label "envinf1"}
steps {
script {
sh 'rm -rf /global/apps/ogs/head/standard'
configure {
cmakeOptions =
'-DOGS_BUILD_UTILS=ON ' +
......@@ -419,6 +420,7 @@ pipeline {
agent { label "envinf1"}
steps {
script {
sh 'rm -rf /global/apps/ogs/head/petsc'
configure {
cmakeOptions =
'-DOGS_USE_PETSC=ON ' +
......
......@@ -10,17 +10,17 @@ if(MODULE_CMD)
string(REPLACE "\n" ";" MODULE_LIST_OUTPUT ${MODULE_LIST_OUTPUT})
foreach(line ${MODULE_LIST_OUTPUT})
if(NOT line STREQUAL "Currently Loaded Modulefiles:")
set(MODULE_LOAD_STRING "${MODULE_LOAD_STRING}module load ${line}\n")
set(MODULE_LOAD_STRING "${MODULE_LOAD_STRING}load(\"${line}\")\n")
endif()
endforeach()
configure_file(${PROJECT_SOURCE_DIR}/scripts/cmake/packaging/module.in
${PROJECT_BINARY_DIR}/module
${PROJECT_BINARY_DIR}/module.lua
)
if(OGS_MODULEFILE)
get_filename_component(MODULE_DIR ${OGS_MODULEFILE} DIRECTORY)
get_filename_component(MODULE_NAME ${OGS_MODULEFILE} NAME)
install(FILES ${PROJECT_BINARY_DIR}/module DESTINATION ${MODULE_DIR}
RENAME ${MODULE_NAME})
install(FILES ${PROJECT_BINARY_DIR}/module.lua DESTINATION ${MODULE_DIR}
RENAME ${MODULE_NAME}.lua)
endif()
endif()
......
#%Module1.0
help([==[
module-whatis OpenGeoSys @OGS_VERSION@
conflict ogs
Description
===========
OpenGeoSys (OGS) is a scientific open source project for the development of
numerical methods for the simulation of thermo-hydro-mechanical-chemical
(THMC) processes in porous and fractured media.
More information
================
- Homepage: https://opengeosys.org
]==])
whatis([==[Name: OpenGeoSys]==])
whatis([==[Version: @OGS_VERSION@]==])
conflict("ogs")
@MODULE_LOAD_STRING@
prepend-path PATH @CMAKE_INSTALL_PREFIX@/bin
local root = "@CMAKE_INSTALL_PREFIX@"
prepend_path("PATH", pathJoin(root, "bin"))
......@@ -18,7 +18,7 @@ Members of the Department Environmental Informatics of the Helmholtz Centre for
You select an OGS version by loading a module:
```bash
export MODULEPATH=$MODULEPATH:/global/apps/modulefiles
module use /global/apps/modulefiles
# Examples:
module load ogs # Loads latest (maybe unstable) ogs in standard config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment