diff --git a/documentation/USEGUIDE.tex b/documentation/USEGUIDE.tex index fa1c4424180c20b8df4a3d571f3710f78a6b3f90..256d66f00e3ea8fcdec562155d66bec3ede601ab 100755 --- a/documentation/USEGUIDE.tex +++ b/documentation/USEGUIDE.tex @@ -978,18 +978,30 @@ At the moment, there is two Irradiation Model available. The two solvers differs \begin{center} \begin{minipage}{\textwidth} \begin{lstlisting} - +#include "CLASSHeaders.hxx" +#include "Irradiation/IM_RK4.hxx" +//#include "Irradiation/IM_Matrix.hxx" +.. +using namespace std; +int main() +{ +//... + IM_RK4* Solver = new IM_RK4(LogObject); // or new IM_RK4(); // uses a default logfile +// IM_Matrix* Solver = new IM_Matrix(LogObject); // or new IM_Matrix(); //uses default logfile + PhysicModels* PHYMOD = new PhysicModels(XSMOX, EQMLINPWRMOX, Solver); +//... +} \end{lstlisting} \end{minipage} \end{center} - +LogObject is a CLASSLogger object (see section~\ref{sec:logclass}). %%%%%%%%%%%%%%%%%%%%%%%%% %% CHAPTER : CLASSGUI %%%%%%%%%%%%%%%%%%%%%%%%% \part{CLASSGui : The results viewer} - - +\subsection{How to build an Irradiation Model} +The strength of CLASS is to allow the user to build his own physic models, this section explains how to build a new Bateman solver (Irradiation Model) and to incorporate it into CLASS.