Last active
March 13, 2023 02:02
-
-
Save gmao-cda/33b942b3e88063d0da70d65f89303513 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!