ivutils
Loading...
Searching...
No Matches
component.h File Reference

Basic types and auxiliary templates for application construction. More...

#include <map>
#include <set>
#include <string>
#include <vector>
#include <chrono>
#include "omp_pointers.h"
#include "refobj.h"
#include "ifmpi.h"
#include "logexc.h"
#include "logger.h"
#include "string_utils.h"
#include "gnudump.h"
#include "vtkdump.h"
#include <ivutils_export.h>
Include dependency graph for component.h:
This graph shows which files directly or indirectly include this file:

Classes

class  apConfig
 configuration settings More...
 
class  apTimer
 Timer that can be started, stopped and measure its working time usually timer corresponds to some process, for example solving number of equations timer can be part of some timers hierarchy which corresponds to hierarchy of processes, for example solving of some equations is part of modeling of some physical process (upper level process), but it has as a part solving of one particular equation (lower level process). More...
 
class  apRunLog
 collection of timers and data about memory used by different operations. More...
 
class  file_manager
 Files manager. More...
 
class  apDump
 Class for requesting dumps of objects and components (including geometric) into files. More...
 
class  apComponent
 class that controls general behaviour of all components of the library. More...
 
class  restorer
 Base class for saving (reading) internal data to (from) the file using finction save_data (load_data). More...
 

Functions

template<class exc_t >
int pmessage (const exc_t &signal, int errcode, const char *what,...)
 calls message (defined in logexc.h) prepending its text with node number

 
int apInitDir (std::string outdir, std::string rawdir, bool silent=false, bool mult_nodes=false)
 When silent is true, only info is printed as vblMESS1, otherwise other starting parameters are specified.
 
int apInit (int argc, char **argv, std::string outdir="", std::string rawdir="", bool silent=false, bool mult_nodes=false)
 Initialization of the applicaton.
 

Variables

IVUTILS_EXPORT apConfigtheConfig
 Global configuration settings object.
 
IVUTILS_EXPORT apRunLogtheLog
 Global logging variable.
 

Detailed Description

Basic types and auxiliary templates for application construction.

Function Documentation

◆ apInitDir()

int apInitDir ( std::string  outdir,
std::string  rawdir,
bool  silent = false,
bool  mult_nodes = false 
)

When silent is true, only info is printed as vblMESS1, otherwise other starting parameters are specified.

When mult_nodes is true, all nodes produce log files proc_xxx.dat (xxx - node number), otherwise only first node does it (proc.dat).

Variable Documentation

◆ theConfig

IVUTILS_EXPORT apConfig* theConfig
extern

Global configuration settings object.

By default all components use the pointer to this config object. Must be initialized at the start of application (in apInit() function).

◆ theLog

IVUTILS_EXPORT apRunLog* theLog
extern

Global logging variable.

By default all components use the pointer to this object. Must be initialized at the start of application (in apInit() function).