initialize.h
Go to the documentation of this file.
1 //
2 // Created by Chong Peng on 7/27/18.
3 //
4 
5 #ifndef TILEDARRAY_INITIALIZE_H__INCLUDED
6 #define TILEDARRAY_INITIALIZE_H__INCLUDED
7 
8 #include <TiledArray/config.h>
10 
11 namespace TiledArray {
12 
15 bool initialized();
16 
18 bool finalized();
19 
27 
29 
32 World& initialize(
33  int& argc, char**& argv,
34  const SafeMPI::Intracomm& comm,
35  bool quiet = true
36 );
37 
38 inline World& initialize(int& argc, char**& argv, bool quiet = true) {
39  return TiledArray::initialize(argc, argv, SafeMPI::COMM_WORLD, quiet);
40 }
41 
42 inline World& initialize(int& argc, char**& argv, const MPI_Comm& comm,
43  bool quiet = true) {
44  return TiledArray::initialize(argc, argv, SafeMPI::Intracomm(comm), quiet);
45 }
46 
48 
51 void finalize();
52 
53 } // namespace TiledArray
54 
55 #endif // TILEDARRAY_INITIALIZE_H__INCLUDED
World & initialize(int &argc, char **&argv, const SafeMPI::Intracomm &comm, bool quiet=true)
Definition: tiledarray.cpp:80
void finalize()
Definition: tiledarray.cpp:118
bool initialized()
Definition: tiledarray.cpp:63
bool finalized()
Definition: tiledarray.cpp:66