MPI-AMRVAC  2.0
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Installation

Table of Contents

Requirements

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 fold ~/codes/amrvac:

cd ~/codes
git clone https://github.com/amrvac/amrvac.git

Setting path

To use MPI-AMRVAC, the installation directory must be exported as an environment parameter AMRVAC_DIR and can be added to the command searching path for robustness. 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
PATH="$PATH:$HOME/codes/amrvac:$HOME/codes/amrvac/tools"

You can then activate the setting by source the file, or 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 happen to have an updated version. "git pull" will fail to update the code. You can give up your modification by "git checkout your_modified_file" after make a copy of it, then update the code. If you want to contribute your modification of the code, please read Contributing to MPI-AMRVAC for more information.