The MPI - Adaptive Mesh Refinement - Versatile Advection Code

Table of Contents


MPI-AMRVAC is in use on Mac laptops, Unix desktops, and modern supercomputing facilities. The following software is required:

Getting the code

To install the code in folder ~/codes/amrvac:

cd ~/codes
git clone

Setting path

To use MPI-AMRVAC, the installation directory must be exported as an environment parameter called AMRVAC_DIR and this variable can be added to the command searching path. To do so using bash, you should add the following line to your ~/.bashrc file (or perhaps ~/.profile in mac OS):

export AMRVAC_DIR=$HOME/codes/amrvac

You can then activate the setting by sourcing this file (or you can close and open a new terminal shell),

source ~/.bashrc

Update the code

It is recommended to update the code weekly to benefit from new improvements and new features which are continuously developed. To update the code:

cd ~/codes/amrvac
git pull

If you modified any source code of amrvac, which has an updated version, "git pull" will fail to update the code. You can give up your modification by "git checkout your_modified_file" after making a copy of your own version (if you want to keep it), then update the code. If you want to contribute your modification of the code, please read Contributing to MPI-AMRVAC and its documentation for more information.