From 7660623f28eb567a780f9add6c4a0666ec2e11fc Mon Sep 17 00:00:00 2001 From: Baptiste LENIAU <baptiste.leniau@subatech.in2p3.fr> Date: Tue, 2 Sep 2014 16:43:03 +0000 Subject: [PATCH] more text git-svn-id: svn+ssh://svn.in2p3.fr/class@370 0e7d625b-0364-4367-a6be-d5be4a48d228 --- documentation/USEGUIDE.tex | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/documentation/USEGUIDE.tex b/documentation/USEGUIDE.tex index fa1c44241..256d66f00 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. -- GitLab