Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Minor update install.md #331

Merged
merged 2 commits into from
May 17, 2023
Merged
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
49 changes: 49 additions & 0 deletions docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Juliaup will inform you when a new release of Julia is available. For example:

to install Julia 1.9.0+0.aarch64.apple.darwin14 and update the `release` channel to that version.
```

To update Julia and make FUSE work under the new environment do as follows:

1. Update Julia
Expand Down Expand Up @@ -112,6 +113,54 @@ cd chease/src-f90
make chease
```

## Install GACODE

1. Download and Install Xquartz: https://www.xquartz.org/
2. Download and Install Xcode: https://developer.apple.com/xcode/
This will have git: check with `git --version`
Typing this will prompt installing of Xcode command line tools
3. Download and Install Macports: https://www.macports.org/install.php
4. Install EMACS, GCC, MPICH, FFTW, NETCDF:
```bash
sudo port install emacs +x11
sudo port install gcc12
sudo port select --set gcc mp-gcc12
sudo port install mpich-gcc12
sudo port select --set mpi mpich-gcc12-fortran
sudo port install fftw-3
sudo port install fftw-3-long
sudo port install fftw-3-single
sudo port install netcdf
sudo port install netcdf-fortran
```
5. Clone gacode:
```bash
git clone [email protected]:gafusion/gacode.git
```
6. Set-up gacode settings in $HOME/.zshrc:
```bash
export GACODE_PLATFORM=OSX_MONTEREY
export GACODE_ROOT=$HOME/gacode
. ${GACODE_ROOT}/shared/bin/gacode_setup
```
For Mac with Apple Silicon:
```bash
conda install -c conda-forge micromamba
micromamba install -c smithsp -c conda-forge gacode
```
8. Compile:
```bash
cd $GACODE_ROOT
cd make
```
9. To test that the build is successful, you can run regression tests:
```bash
neo -r
tglf -r
cgyro -g reg01
cgyro -e ./reg01
```

## Troubleshooting
When using the ProjectTorreyPines private Julia [GA registry](https://github.com/ProjectTorreyPines/GAregistry), one may get `SSH host verification` errors when installing and updating Julia packages:

Expand Down