\section{Compiling the model and creating a project}
The main prerequisite to install the LAKE model is the Fortran compiler.
It is recommended that you use Intel compiler, that is free under Linux
for non-commercial purposes. Intel compiler is set by default in the model install configuration (\emph{./Makefile}, \emph{./source/Makefile}).
So, if you want to use another compiler, you have to change these makefiles
accordingly. So, once you unpacked the LAKE model archive just type in the model root folder
The only prerequisite to install LAKE model is Fortran compiler.
The model can be built from source code by GNU and Intel Fortran compilers. GNU compiler is set by default in the model install configuration. Install configuration is given in files \emph{./Makefile} and \emph{./source/Makefile}. If you want to use Intel compiler, you have to change variable \emph{FC} in these makefiles to \emph{ifort}.
Once you unpacked the LAKE model archive just type in the model root folder
\begin{lstlisting}
user@computer:~/LAKE/lake$ make all
...
...
@@ -434,6 +433,20 @@ The model is launched by typing in the terminal
user@computer:~/LAKE/lake$ ./lake.out
\end{lstlisting}
However, it usually happen that you need to run the model with different configurations (input parameters). In this case we recommend to use the script \emph{launch} in a root folder. To run the model you invoke this script with an argument specifying the experiment label
This script does the following. It runs the model, the model writes output data to \emph{results/Valkea-Kotinen2006}, then the script creates \emph{results/Valkea-Kotinen2006\_base} and copies there the content of \emph{results/Valkea-Kotinen2006}, \emph{setup/Valkea-Kotinen2006\_setup.dat} and \emph{setup/Valkea-Kotinen2006\_driver.dat}. As a result, both model output and configuration files of an experiment labeled as $base$ are written in a specific directory, so you will not mix them with that from other experiments.
\section{Model output}
The model output is written in \emph{./results/project\_name} folder.