#include <CAnalysis.hpp>
Public Member Functions | |
CAnalysis (CUserInput *uinp, CDataReader *dr) | |
constructor | |
~CAnalysis () | |
destructor | |
void | analyze () |
do analysis | |
Private Member Functions | |
void | fillSummaryFiles () |
Do all calculations needed to fill the summary files. | |
void | writeSummaryFiles () |
void | plottingRoutines () |
void | analysisRoutines () |
void | redundantRoutines () |
Static Private Member Functions | |
static void | initFortranStuff () |
Private Attributes | |
CUserInput * | _uinp |
CDataReader * | _dr |
Cube< double > | _sumfile |
Static Private Attributes | |
static const int | defval = -99 |
static const int | nfeh = NFEH |
static const int | nsumfile = 9 |
static const int | ncol [9] = {11+nfeh,23,14,11,11,27,9,9,9} |
CAnalysis::CAnalysis | ( | CUserInput * | uinp, | |
CDataReader * | dr | |||
) |
constructor
uinp | pointer to a CUserInput instance: provides all the user input needed to know what to analyze where and how. |
void CAnalysis::analyze | ( | ) |
do analysis
based on the information in the user input instance execute some analysis routine(s)
void CAnalysis::initFortranStuff | ( | ) | [static, private] |
Before calling fortran routines, some stuff needs to be initialized (e.g. particle types). Call the necessary routines here.
void CAnalysis::writeSummaryFiles | ( | ) | [private] |
write the summary files to disk
CDataReader* CAnalysis::_dr [private] |
pointer to the instance providing the data
Cube<double> CAnalysis::_sumfile [private] |
3D array, allocated as _sumfile(NFMAX+1, NCOLMAX, NBACK)
The masterpiece of this code, the sumfile array contains all the information calculated by the various subprograms of hyplot. These files are written as ASCII files at the end of the hyplot execution, and can be found in rundir/data/sumfiles
NFMAX+1: we go from 0 to NFMAX
Column index 1 : Select the row of a summary file Column index 2 : Select the column of a summary file. Each column contains one specific quantity calculated by hyplot. Column index 3 : Select a summary file (e.g. [][][2] : file 3 => XXXX.02.dat or XXXX.03.dat (depends if you are starting from 0 or 1), with XXXX the run number.
CUserInput* CAnalysis::_uinp [private] |
pointer to the instance providing user input data
const int CAnalysis::defval = -99 [static, private] |
default value used in a summary file for a non-computed field
const int CAnalysis::ncol = {11+nfeh,23,14,11,11,27,9,9,9} [static, private] |
number of columns in each summary file
const int CAnalysis::nfeh = NFEH [static, private] |
number of feh columns in summary file 1
const int CAnalysis::nsumfile = 9 [static, private] |
number of summary files