Update Getting the latest version of MAR (code only) authored by Grailet Jean-François's avatar Grailet Jean-François
---
title: Getting the latest version of MAR (code only)
---
If you're already a MAR user, there's a good chance you already have set up a `~/MAR` folder somewhere on a cluster or laboratory machine (e.g., climato\.be for ULiège researchers), where you would find (some of) the content stored in a MAR repository such as [ESPECES/MAR/stable](https://gitlab.uliege.be/especes/mar/stable).
However, for various reasons, there's also a good chance you have already tuned some files present on this repository for your own needs, typically in `~/MAR/bin` and `~/MAR/usr`. Therefore, if you cloned or pulled the entire [ESPECES/MAR/stable repository](https://gitlab.uliege.be/especes/mar/stable) in your ``~/MAR`` folder, you may overwrite some of your own scripts in the process.
......@@ -69,7 +70,7 @@ git pull origin main
Let us assume you pulled the contents of `src/forMAR/forMAR` from [ESPECES/MAR/stable](https://gitlab.uliege.be/especes/mar/stable) in your `~/MAR` folder, as suggested earlier, and modified a few files in your own `~/MAR/src/forMAR/forMAR` folder to prepare a MAR executable.
For example, you modified `src/forMAR/forMAR/mar_ecrad_mod.f90` or `src/forMAR/forMAR/marmagic_mod.f90` to tune model parameters, or changed `src/forMAR/forMAR/mar_ib_mod.f90` to change the outputs (e.g., to produce hourly outputs instead of daily outputs).
For example, you modified `src/forMAR/forMAR/mar_ecrad_mod.f90` to tune parameters of the radiative transfer scheme ecRad, or changed `src/forMAR/forMAR/mar_ib_mod.f90` to tune the outputs (e.g., to produce hourly outputs instead of daily outputs).
However, you now want to revert these local changes, either to tune a new MAR executable or to update your copy without having conflicts. You can then use the next ``git`` command.
......
......