VERB_code_2.2  2
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Main.cpp File Reference

This is the main program file. More...

#include <valarray>
#include <math.h>
#include <ctime>
#include <time.h>
#include "../Logging/Output.h"
#include "../VariousFunctions/variousFunctions.h"
#include "../Diffusion/PSD.h"
#include "../Grid/Grid.h"
#include "../Grid/BoundaryConditions.h"
#include "../Grid/AdditionalSourcesAndLosses.h"
#include "../Parameters/Parameters.h"

Go to the source code of this file.

Namespaces

 std
 General namespace.
 

Constant Groups

 std
 General namespace.
 

Macros

#define _CRT_SECURE_NO_DEPRECATE
 No "depreciated" warnings. More...
 
#define __VERB_VERSION_NUMBER__   "2.03.000"
 Number of current VERB code version. More...
 

Functions

int main (int argc, char *argv[])
 Main code. More...
 

Variables

Parameters_structure parameters
 Parameters structure, with all parameters from the parameters.ini file. The default parameters defined in the constructor. More...
 

Detailed Description

This is the main program file.

Author
Developed by Dmitry Subbotin under supervision of the PI Yuri Shprits.

Code below correspond to the commented part. It works only in uncommented state.

// \def DEBUG
// \brief Reserved for debug purposes if defined
// #define DEBUG
// \def DEBUG_MODE
// \brief define DEBUG_MODE value. Checks if memory was alocated for a matrix at each use.
// \warning Additional checks and outputs for debbugging if defined. MUCH SLOWER, FOR DEBUG ONLY!
// #define DEBUG_MODE

Definition in file Main.cpp.

Macro Definition Documentation

#define _CRT_SECURE_NO_DEPRECATE

No "depreciated" warnings.

Definition at line 104 of file Main.cpp.

#define __VERB_VERSION_NUMBER__   "2.03.000"

Number of current VERB code version.

Definition at line 105 of file Main.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Main code.

Parameters
[in]argv[]The name of the parameter file
argcNumber of arguments, mandatory automatic parameter (does not need to be specified).

Definition at line 171 of file Main.cpp.

References __VERB_VERSION_NUMBER__, DiffusionCoefficientsGroup::ActivateAndScale(), VF::alc(), Matrix3D< T >::AllocateMemory(), Grid::alpha, Parameters_structure::alpha_LowerBoundaryCondition, Parameters_structure::alpha_UpperBoundaryCondition, Parameters_structure::PSD::approximationMethod, BoundaryCondition::arr, DiffusionCoefficient::arr, GridElement::arr, PSD::arr, Parameters_structure::Bf, VF::bounce_time_new(), BoundaryCondition::calculationType, VF::check_time(), Output::close_log_file(), Grid::Create_Grid(), PSD::Create_Initial_PSD(), AdditionalSourcesAndLosses::Create_SL(), CreateAllDiffusionCoefficients(), DiffusionCoefficientsGroup::CurrentDxx, PSD::Diffusion_alpha(), PSD::Diffusion_L(), PSD::Diffusion_pc(), PSD::Diffusion_pc_alpha(), PSD::Diffusion_pc_alpha_KC(), PSD::DiffusionMixTermExplicit(), Parameters_structure::DLLType, Output::echo(), Grid::epc, err, VC::exp, Parameters_structure::General_Output_parameters::fileName1D, Output::flush_log_file(), Parameters_structure::General_Output_parameters::folderName, Parameters_structure::general_Output_parameters, PSD::Interpolate(), Parameters_structure::interpolation, Parameters_structure::General_Output_parameters::iterStep, Grid::Jacobian, Parameters_structure::Kp, Grid::L, Parameters_structure::L_LowerBoundaryCondition, Parameters_structure::L_UpperBoundaryCondition, Parameters_structure::Load_parameters(), BoundaryCondition::LoadBoundaryCondition(), Parameters_structure::localDiffusionsGrid_alpha, Parameters_structure::localDiffusionsGrid_epc, Parameters_structure::localDiffusionsGrid_filename, Parameters_structure::localDiffusionsGrid_L, Parameters_structure::localDiffusionsGrid_pc, Parameters_structure::localDiffusionsGrid_type, Parameters_structure::Lpp, BoundaryCondition::MakeBoundaryCondition(), DiffusionCoefficient::MakeDLL(), PSD::matr_A, PSD::matr_B, PSD::matr_C, Matrix3D< T >::max(), Parameters_structure::NoNegative, Output::open_log_file(), Grid::Output(), Output1DHeaders(), Output1DValues(), PSD::Output_without_grid(), Parameters_structure::outputLvl, Parameters_structure::outputModelMatrix, parameters, Grid::pc, Parameters_structure::pc_LowerBoundaryCondition, Parameters_structure::pc_UpperBoundaryCondition, VC::pi, Parameters_structure::psdLocalDiffusions, Parameters_structure::psdRadialDiffusion, Parameters_structure::radialDiffusionGrid_alpha, Parameters_structure::radialDiffusionGrid_epc, Parameters_structure::radialDiffusionGrid_filename, Parameters_structure::radialDiffusionGrid_L, Parameters_structure::radialDiffusionGrid_pc, Parameters_structure::radialDiffusionGrid_type, Output::set_output_lvl(), GridElement::size, Parameters_structure::SL, PSD::SourcesAndLosses(), Parameters_structure::tau, Parameters_structure::tauLpp, Parameters_structure::timeStep, Parameters_structure::totalIterationsNumber, Parameters_structure::BoundaryCondition::type, BoundaryCondition::Update(), Parameters_structure::useAlphaDiffusion, Parameters_structure::useEnergyAlphaMixedTerms, Parameters_structure::useEnergyDiffusion, Parameters_structure::useLossCone, Parameters_structure::useRadialDiffusion, error_msg::what(), Matrix3D< T >::writeToFile(), CalculationMatrix::writeToFile(), Matrix3D< T >::xSlice(), Matrix3D< T >::ySlice(), VC::zero_f, and Matrix3D< T >::zSlice().

Variable Documentation

Parameters structure, with all parameters from the parameters.ini file. The default parameters defined in the constructor.

Definition at line 164 of file Main.cpp.