LIBINT  2.1.0-stable
cxxapi.h
1 /*
2  * This file is a part of Libint.
3  * Copyright (C) 2004-2014 Edward F. Valeev
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Library General Public License, version 2,
7  * as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this program. If not, see http://www.gnu.org/licenses/.
16  *
17  */
18 
19 #ifndef _libint2_src_lib_libint_cxxapi_h_
20 #define _libint2_src_lib_libint_cxxapi_h_
21 
22 #include <libint2/cxxstd.h>
23 #if LIBINT2_CPLUSPLUS_STD < 2011
24 # error "Libint2 C++ API requires C++11 support"
25 #endif
26 
27 #include <libint2.h>
28 
29 #include <libint2/chemistry/elements.h>
30 #include <libint2/atom.h>
31 #include <libint2/basis.h>
32 #include <libint2/solidharmonics.h>
33 
34 namespace libint2 {
35 
36  namespace detail {
37  static bool __initialized = false;
38  };
39 
40  inline void init() {
41  libint2_static_init();
42  detail::__initialized = true;
43  }
44  inline void cleanup() {
45  libint2_static_cleanup();
46  detail::__initialized = false;
47  }
48  inline void finalize() {
49  ::libint2::cleanup();
50  }
51  inline bool initialized() {
52  return detail::__initialized;
53  }
54 }
55 
56 #include <libint2/engine.h>
57 
58 #endif /* _libint2_src_lib_libint_cxxapi_h_ */
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:23