========================================= Installation and First Steps ========================================= .. _installation: Install BattMo by cloning the git repository using :code:`--recurse-submodules` to also install the `MRST`_ dependencies. First, open a terminal and navigate to the directory where you would like to install BattMo. Then, clone the repository using the following command: .. code-block:: shell git clone --recurse-submodules https://github.com/BattMoTeam/BattMo.git Start MATLAB and in the directory :code:`battmo` where you cloned the repository. In the MATLAB Command Window run: .. code-block:: matlab startupBattMo You can check that that your installation is setup correctly by running one of the example scripts .. code-block:: matlab runBatteryP2D Here is video which guides you through the installation in details .. youtube:: -XVppzyNSs0 For a detailed guided installation of git, you can consult this `video `_ .. _MRST: https://www.sintef.no/Projectweb/MRST/ Update existing installation ============================ In the case where we alread have installed BattMo and you want to update to the latest version. As usual in git, you will do that by runnin .. code-block:: shell git pull In addition to that, the dependencies that are given through git submodules. To update those you need to run in addition to the previous command, .. code-block:: shell git submodule update --recursive