Skip to content

Instantly share code, notes, and snippets.

@gmao-cda
Last active March 13, 2023 02:02
Show Gist options
  • Save gmao-cda/33b942b3e88063d0da70d65f89303513 to your computer and use it in GitHub Desktop.
Save gmao-cda/33b942b3e88063d0da70d65f89303513 to your computer and use it in GitHub Desktop.
## Install env (easy way if you don't want to install them by yourself)
```
brew install gcc
brew install open-mpi
brew install netcdf
brew install netcdf-fortran
```
## Correct netcdf-fortran
1. type `nf-config`, which shows all your configurations for your netcdf.
2. if your `--flibs` has this component `-lnetcdf` (** 1 f at the end`), then do the following. Otherwise directly go the next section
```
cd /opt/homebrew/Cellar/netcdf-fortran/4.6.0/lib
cp ../../../netcdf/4.9.0/lib/libnetcdf.a .
```
## Get MOM6 src
```
git clone --recursive https://github.com/NOAA-GFDL/MOM6-examples.git MOM6-examples
```
## Build MOM6
follow the "Compilation" Section exactly as shown on https://github.com/NOAA-GFDL/MOM6-examples/wiki/Compiling-on-MacBook-M1-chip-using-conda-environment
@sanAkel
Copy link

sanAkel commented Mar 13, 2023

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment