Skip to content
Snippets Groups Projects
Commit f3abc1f3 authored by Nico's avatar Nico
Browse files

Update Doc...

parent 9103d5f2
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ The CLASS package contains the followings : ...@@ -31,7 +31,7 @@ The CLASS package contains the followings :
\subitem \textbf{DECAY/} : decay data base \subitem \textbf{DECAY/} : decay data base
\subitem \textbf{FBR-Na/} : Models related to Fast reactor \subitem \textbf{FBR-Na/} : Models related to Fast reactor
\subitem \textbf{PWR/} : Models related to Pressurised Water Reactor \subitem \textbf{PWR/} : Models related to Pressurised Water Reactor
\subitem \textbf{REP_HFC/} : Models related to low moderated Pressurised Water Reactor \subitem \textbf{REP\_HFC/} : Models related to low moderated Pressurised Water Reactor
\subitem \textbf{ADS/} : Models related to Accelerator Driven System \subitem \textbf{ADS/} : Models related to Accelerator Driven System
\item \textbf{documentation/} \item \textbf{documentation/}
...@@ -64,129 +64,17 @@ The CLASS package contains the followings : ...@@ -64,129 +64,17 @@ The CLASS package contains the followings :
\chapter{Install procedure} \chapter{Install procedure}
\section{Requirement} \section{Requirement}
\begin{center}
\begin{minipage}{\textwidth}
\begin{itemize} \begin{itemize}
\item User skills : Good knowledge of C++. Abilities in using \href{https://root.cern.ch/}{Root}\footnote{https://root.cern.ch/}. \item User skills : Good knowledge of C++. Abilities in using \href{https://root.cern.ch/}{Root}\footnote{https://root.cern.ch/}.
Experience in depletion codes and neutron transport codes. Experience in depletion codes and neutron transport codes is required for building complex new reactor model.
\item OS : CLASS is known to work under Linux (64 bits) and MacOSX (64 bits). It has never been tested on any Windows distribution. \item OS : CLASS is known to work under Linux (64 bits) and MacOSX (64 bits). It has never been tested on any Windows distribution.
\item C++ compiler : we recommend to use a gnu compiler like gcc4.8 or above. \item C++ compiler : we recommend to use a gnu compiler like gcc4.8 or above. For OSX, CLASS is working with native clang compiler.
\item For DARWIN (OSX) users : \item For DARWIN (OSX) users :
Make sure you have installed XCode and its command line tools (if not dowload and install from AppStore).\\ Make sure you have installed XCode and its command line tools (if not dowload and install from AppStore). If using clang compiler, there's no possibility to use openmp.
Install \href{http://xquartz.macosforge.org/landing/}{XQuartz}\footnote{http://xquartz.macosforge.org/landing/}.\\
We recommend NOT to use the clang compiler as there is no openmp library in it but the compilation should work with clang anyway\\
TO INSTALL GNU COMPILER : You should install first \href{https://www.macports.org/install.php}{MacPorts}\footnote{https://www.macports.org/install.php} \\
Then, types this following command in terminal :\\
\begin{lstlisting}[style=terminal]
sudo port install gcc5
sudo port select --set gcc mp-gcc5
\end{lstlisting}
\item Root (CERN) : \item Root (CERN) :
CLASS uses Root to store output data. ROOT~\cite{Brun_1997} is an analysis software developped by CERN. CLASS version 5 uses some ROOT version 6 features to run. CLASS uses Root to store output data. The graphical user interface CLASSGui is also based on Root. Some algorithms uses the TMVA module of Root.
The graphical user interface CLASSGui is based on Root.
Some algorithms uses the TMVA module of Root. You need to build root from sources with the same C++ compiler as the one you use for CLASS (see first note below). If you prefer use pre-compiled Root libraries, make sure to choose one which is built with the same C++ compiler as the one you will use for compiling CLASS.
For instance if you use a pre-compiled Root libraries compiled with the clang (DARWIN (OSX)) compiler, you have to compile CLASS with clang (and maybe with the same version).
\end{itemize} \end{itemize}
\end{minipage}
\end{center}
\begin{center}
\line(1,0){250}
\end{center}
\begin{large}
\begin{center}
\textbf{IMPORTANT NOTES : } \\
\vspace{0.5cm}
\textbf{about building Root from sources} \\
\end{center}
\end{large}
\underline{For OSX users (tested with OSX Yosemite \& gcc5 from macport) :}\\
With terminal, go to the unziped ROOT directory then :
\begin{lstlisting}[style=terminal]
./configure --with-cxx=/opt/local/bin/g++ --with-cc=/opt/local/bin/gcc --with-f77=/opt/local/bin/gfortran --with-ld=/opt/local/bin/g++ --enable-builtin-freetype --disable-cocoa --enable-minuit2 --disable-bonjour
\end{lstlisting}
If configuration succeed :
\begin{lstlisting}[style=terminal]
make -j
\end{lstlisting}
\vspace{0.5cm}
\underline{For Linux users :}\\
\begin{lstlisting}[style=terminal]
./configure
make -j
\end{lstlisting}
seems to work easily
\vspace{1cm}
\begin{large}
\begin{center}
\textbf{about the Root version to use} \\
\end{center}
\end{large}
The version 6.00 and above doesn't use the CINT environment annymore. As a consequence, CLASS is not able to use these new Root versions. You have to use an older one.
Root package of version 5.34/26 and older have a memory leak issue when using TMVA leading to a \textbf{freeze of your computer.}
Compatible versions of Root are :
\begin{equation}
\text{Root v5.34/30} \leq \text{Working Root version} \leq \text{Root v5.99/06}
\end{equation}
You can use an older Root version as v5.34/30 but you have to make this modification in the sources :
Open with your favourite text editor the file \$ROOTSYS/tmva/src/Reader.cxx (\$ROOTSYS is the path to your ROOT installation folder) and replace the following :\\
\begin{center}
\begin{minipage}{\textwidth}
\begin{lstlisting}[style=customc]
TMVA::Reader::~Reader( void )
{
// destructor
delete fDataSetManager; // DSMTEST
delete fLogger;
}
\end{lstlisting}
\end{minipage}
\end{center}
by :\\
\begin{center}
\begin{minipage}{\textwidth}
\begin{lstlisting}[style=customc]
TMVA::Reader::~Reader( void )
{
// destructor
std::map<TString, IMethod* >::iterator itr;
for( itr = fMethodMap.begin(); itr != fMethodMap.end(); itr++) {
delete itr->second;
}
fMethodMap.clear();
delete fDataSetManager; // DSMTEST
delete fLogger;
}
\end{lstlisting}
\end{minipage}
\end{center}
then type in your terminal :
\begin{center}
\begin{minipage}{\textwidth}
\begin{lstlisting}[style=terminal]
cd $ROOTSYS
sudo make -j
\end{lstlisting}
\end{minipage}
\end{center}
\begin{center}
\line(1,0){250}
\end{center}
\section{Installation} \section{Installation}
Decompress the CLASS.tar.gz in your wanted location. Decompress the CLASS.tar.gz in your wanted location.
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment