Skip to content

Download

Hsi-Yu Schive edited this page Jun 30, 2023 · 8 revisions

GAMER is distributed on the GAMER GitHub repository. To download the code, you will need to install git (if not installed yet) and then type

> git clone https://github.com/gamer-project/gamer

By default, you will be using the development version after git clone. If you would like to switch to the stable version, type

> git checkout stable

If you have downloaded the code previously and want to update to the latest development or stable version, move to the code directory and type one of the following commands.

# for the development version
> git pull origin master

# for the stable version
> git pull origin stable

See guides.github.com for guides to git and GitHub.

Caution

To validate whether the downloaded code correctly retains the symbolic links used by GAMER, try

> ls -l gamer/src/SelfGravity/GPU_Gravity/

Correct: CUPOT_ExternalAcc.cu -> ../CPU_Gravity/CPU_ExternalAcc.cpp
Incorrect: CUPOT_ExternalAcc.cu

Try updating git if you get incorrect results. Adding either --config core.symlinks=true or --config core.symlinks=false to your git clone command may also help.

Clone this wiki locally