Step 1: Checkout this repository
git clone https://github.com/breichl/MOM6_SCM_Hurr.git
Step 2: Update submodules
cd MOM6_SCM_Hurr
git submodule update --init --recursive
cd src/MOM6
git submodule update --init --recursive
cd ../..
Step 3: Compile ./scripts/compile/OceanComp.csh
Step 4: Run
See the sample run script in scripts/run
It is presently set up to run with overrides for experiments in the file "SCM_hurr_aux.py"
You can comment/uncomment to run with various scenarios
Step 5: Analysis A sample analysis notebook is in the analysis folder
INCLUDING GOTM CASES
Step 1: Install GOTM (conda/mamba env to build)
a. Install miniconda: https://docs.rdhpcs.noaa.gov/software/python/miniforge.html
b. Make directory for GOTM:
mkdir GOTM
cd GOTM
git clone https://github.com/gotm-model/code gotm-code
(optional)
cd ..
git clone https://github.com/gotm-model/cases gotm-cases
c. Make conda environment for GOTM:
conda create -n gotm-env -c conda-forge fortran-compiler netcdf-fortran cmake
conda activate gotm-env
d. Build GOTM:
(In GOTM directory)
mkdir gotm-install
mkdir build
cd build
cmake ../gotm-code -DGOTM_USE_FABM=off -DCMAKE_INSTALL_PREFIX=/absolute/path/to/GOTM/gotm-install
make -j$(nproc)
make install
e. Activate GOTM:
export PATH="/absolute/path/to/GOTM/gotm-install/bin:$PATH"
f. Verify installation (and optionally, run a test case):
gotm --version
cd ../gotm-cases/ows_papa/
gotm
Step 2: Define GOTM experiment
Find the file: analysis/compare_with_GOTM/experiments/gotm.yaml This is the GOTM yaml setup which will be copied into each experiment directory. Edit the turbulence closure parameters and change your title to match your changes. The experiment subfolder will be called whatever the title you set in the GOTM yaml file.
Step 3: Run your GOTM for all LES cases
Make sure GOTM is activated for this step. To check: gotm --version To run the experiments: python analysis/compare_with_GOTM/run.py