Skip to content
Open
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
9 changes: 5 additions & 4 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Contributors

| GitHub user | Real Name | Affiliation | Date |
| ----------- | --------- | ----------- | ---- |
| james-bruten-mo | James Bruten | Met Office | 2025-12-09 |
| Pierre-siddall | Pierre Siddall | Met Office | 2025-01-19 |
| GitHub user | Real Name | Affiliation | Date |
|-----------------|----------------|-------------|------------|
| james-bruten-mo | James Bruten | Met Office | 2025-12-09 |
| Pierre-siddall | Pierre Siddall | Met Office | 2025-01-19 |
| dcalve | Daley Calvert | Met Office | 2026-02-04 |
42 changes: 38 additions & 4 deletions Utilities/mean_nemo/compiler.xc40
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@
#!/bin/bash
#PBS -N compile_mean_nemo
#PBS -o compile_mean_nemo.o
#PBS -e compile_mean_nemo.e
#PBS -q shared
#PBS -l ncpus=1
#PBS -l walltime=00:01:00
#PBS -l mem=500mb

rm -f mean_nemo.exe
set -eu

module unload cray-netcdf
module load cray-netcdf
ftn -O0 mean_nemo.f90 -o mean_nemo.exe
NAME=mean_nemo

MODE=prod
#MODE=dev
#MODE=debug

case ${MODE} in
prod)
opts="-O2 -Ovector1 -hfp0 -hflex_mp=intolerant"
;;
dev)
opts="-O0"
;;
debug)
opts="-O0 -Ovector0 -hflex_mp=intolerant -e CID -Ktrap=fp -g"
;;
*)
echo "Compilation mode \"${MODE}\" not supported"
exit 1
;;
esac

cd ${PBS_O_WORKDIR}

[ -f ${NAME}.exe ] && rm -f ${NAME}.exe

module unload cray-hdf5 cray-netcdf 2>/dev/null
module load cray-hdf5 cray-netcdf

ftn ${opts} mean_nemo.f90 -o ${NAME}.exe
34 changes: 29 additions & 5 deletions Utilities/mean_nemo/compiler.xc40_login
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
#!/bin/bash

rm -f mean_nemo.exe
set -eu

module swap craype-haswell craype-ivybridge
module unload cray-netcdf
module load cray-netcdf
ftn -O0 mean_nemo.f90 -o mean_nemo_login.exe
NAME=mean_nemo_login

MODE=prod
#MODE=dev
#MODE=debug

case ${MODE} in
prod)
opts="-O2 -Ovector1 -hfp0 -hflex_mp=intolerant"
;;
dev)
opts="-O0"
;;
debug)
opts="-O0 -Ovector0 -hflex_mp=intolerant -e CID -Ktrap=fp -g"
;;
*)
echo "Mode \"${MODE}\" not supported"
exit 1
;;
esac

[ -f ${NAME}.exe ] && rm -f ${NAME}.exe

module unload cray-hdf5 cray-netcdf 2>/dev/null
module load cray-hdf5 cray-netcdf

ftn ${opts} mean_nemo.f90 -o ${NAME}.exe
Loading