Skip to content

Download

Hsi-Yu Schive edited this page Jan 2, 2019 · 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/CPU_Gravity/

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

If you get incorrect results, try adding either --config core.symlinks=true or --config core.symlinks=false to your git clone command.

Clone this wiki locally