Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions modulefiles/build_macos_gnu
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#%Module

proc ModulesHelp { } {
puts stderr "This module loads libraries for building SRW on"
puts stderr "macOS Big Sur (Darwin20) using GNU 11.2 + openmpi/4.2.1"
puts stderr "Option 1: M1/arm64 platform, OS BigSur,Monterey (Darwin 20,21) "
puts stderr "Option 2: Intel/x86_64 platform, OS BigSur (Darwin 19) "
puts stderr "
}

module-whatis "Loads libraries needed for building SRW on Hera"
module-whatis "Loads libraries needed for building SRW on MacOS"

if { [module-info mode load] } {
system "ulimit -S -s unlimited;"
puts "ulimit -S -s unlimited;"
}

# This path should point to your HPCstack installation directory
Expand Down Expand Up @@ -51,11 +52,11 @@ module load yafyaml/v0.5.1
module load mapl/2.12.2-esmf-8_2_0
module load gfsio/1.4.1
module load landsfcutil/2.4.1
module load nemsio/2.5.4
module load nemsio/2.5.2
module load nemsiogfs/2.5.3
module load sfcio/1.4.1
module load sigio/2.3.2
module load w3emc/2.9.2
module load w3emc/2.7.3
module load wgrib2/2.0.8
module list

Expand All @@ -64,7 +65,7 @@ setenv CC "/opt/homebrew/bin/gcc"
setenv FC "/opt/homebrew/bin/gfortran"
setenv CXX "/opt/homebrew/bin/g++"

# Option 2 compiler paths:
# Option 2 compiler paths (uncomment):
#setenv CC "/usr/local/bin/gcc"
#setenv FC "/usr/local/bin/gfortran"
#setenv CXX "/usr/local/bin/g++"
Expand All @@ -79,5 +80,7 @@ setenv CMAKE_Fortran_COMPILER $env(MPI_FC)
setenv CMAKE_Platform macos.gnu

setenv CMAKE_Fortran_COMPILER_ID "GNU"
setenv LDFLAGS "-L$env(MPI_ROOT)/lib"
setenv FFLAGS "-DNO_QUAD_PRECISION -fallow-argument-mismatch "
# export the environment variable LDFLAGS from the command line
# after loading the current module:
# export LDFLAGS="-L$MPI_ROOT/lib"
4 changes: 2 additions & 2 deletions modulefiles/wflow_macos
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ proc ModulesHelp { } {
put stderr "macOS"
}

module-whatis "Loads libraries needed for running SRW on macOS"
module-whatis "This module activates python environment for running SRW on macOS"

setenv CMAKE_Platform macos

Expand All @@ -14,7 +14,7 @@ setenv CMAKE_Platform macos
#
setenv VENV "/Users/username/venv/regional_workflow"
if { [module-info mode load] } {
system "source $env(VENV)/bin/activate;"
puts "source $env(VENV)/bin/activate;"
}

# Uncomment if Rocoto workflow manager is used
Expand Down