=========================================
Installation instruction and requirements
=========================================
.. _installation:
BattMo is based on `MRST`_ which provides a general unstructured grid format, generic MATLAB automatic differentiation
tools and Newton solvers.
The MRST code source can be installed directlu using git submodules:
.. code-block:: shell
git clone --recurse-submodules https://github.com/BattMoTeam/BattMo.git
Then start Matlab and in the directory :code:`battmo` where you cloned the repo, 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
runBattery1D
For large models, iterative solvers are necessary. The **open source** version from 2012 of the `AGMG
`_ iterative solver from **2012** is provided as a `submodule `_. We
plan to integrate newer open source iterative solvers such as `AMGCL `_
.. _MRST: https://www.sintef.no/Projectweb/MRST/