/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/init.hh Source File#

DiFfRG: /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/init.hh Source File
DiFfRG
Discretization Framework for functional Renormalization Group flows
init.hh
Go to the documentation of this file.
1#pragma once
2
3// DiFfRG
6
7// external libraries
8#include <deal.II/base/init_finalize.h>
9#include <deal.II/base/mpi.h>
10
11namespace DiFfRG
12{
20
21 class Init
22 {
23 public:
32 Init(int argc, char *argv[], const std::string parameter_file = "parameter.json");
33 Init(const std::string parameter_file = "parameter.json");
34
36
37 static bool is_initialized();
38
39 private:
40 static bool initialized;
41
42 int argc;
43 char **argv;
44 std::string parameter_file;
45 static dealii::InitFinalize *mpi_initialization;
46 };
47} // namespace DiFfRG
A hierarchical configuration tree, readable from JSON and TOML files.
Definition config_tree.hh:32
Class to read parameters given from the command line and from a parameter file.
Definition configuration_helper.hh:16
Definition init.hh:22
int argc
Definition init.hh:42
std::string parameter_file
Definition init.hh:44
Init(int argc, char *argv[], const std::string parameter_file="parameter.json")
char ** argv
Definition init.hh:43
static bool is_initialized()
static bool initialized
Definition init.hh:40
Init(const std::string parameter_file="parameter.json")
static dealii::InitFinalize * mpi_initialization
Definition init.hh:45
const ConfigurationHelper get_configuration_helper() const
Definition complex_math.hh:10
void set_thread_limit(const ConfigTree &config)
Limit the number of CPU threads from a configuration tree.
@ config
/discretization/threads.