Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bridge_setup.h
Go to the documentation of this file.
1 
14 #ifndef BRIDGE_SETUP_INCLUDED
15 #define BRIDGE_SETUP_INCLUDED
16 
17 #include <vector>
18 #include <string>
19 #include "Parameters/parameters.h"
20 
21 #ifdef USE_GROUP_SU3
22 #define Nc 3
23 #else
24 #ifdef USE_GROUP_SU2
25 #define Nc 2
26 #else
27 #ifdef USE_GROUP_SU_N
28 #define Nc 3
29 #endif
30 #endif
31 #endif
32 
33 int bridge_initialize(int *pargc, char ***pargv);
34 
35 int bridge_initialize(int *pargc, char ***pargv,
36  const Parameters& params);
37 
38 int bridge_initialize(int *pargc, char ***pargv,
39  const std::vector<int>& lattice_size,
40  const std::vector<int>& grid_size = std::vector<int>(),
41  const int number_of_threads = 1,
42  const int number_of_colors = Nc,
43  const std::string& logfile = "stdout",
44  const std::string& ildg_logfile = "stdout",
45  const std::string& verbose_level = "General"
46  );
47 
48 int bridge_finalize();
49 
50 void bridge_setup(const Parameters& params);
51 
52 void bridge_setup(const std::vector<int>& lattice_size,
53  const std::vector<int>& grid_size = std::vector<int>(),
54  const int number_of_threads = 1,
55  const int number_of_colors = Nc,
56  const std::string& logfile = "stdout",
57  const std::string& ildg_logfile = "stdout",
58  const std::string& verbose_level = "General"
59  );
60 
61 #ifdef Nc
62 #undef Nc
63 #endif
64 
65 #endif /* BRIDGE_SETUP_INCLUDED */
Class for parameters.
Definition: parameters.h:46
int bridge_initialize(int *pargc, char ***pargv)
void bridge_setup(const Parameters &params)
int bridge_finalize()