5
5
* that implements a variety of quantum chemistry methods for strongly
6
6
* correlated electrons.
7
7
*
8
- * Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER,
8
+ * Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER,
9
9
* AUTHORS).
10
10
*
11
11
* The copyrights for code used from other parties are included in
@@ -106,8 +106,10 @@ using SpaceInfo = std::pair<psi::Dimension, std::vector<MOInfo>>;
106
106
*/
107
107
class MOSpaceInfo {
108
108
public:
109
+ // ==> Class Constructor <==
109
110
MOSpaceInfo (psi::Dimension& nmopi);
110
- ~MOSpaceInfo ();
111
+
112
+ // ==> Class Interface <==
111
113
112
114
// / @return The names of orbital spaces
113
115
std::vector<std::string> space_names () const { return space_names_; }
@@ -132,13 +134,13 @@ class MOSpaceInfo {
132
134
size_t nirrep () { return nirrep_; }
133
135
134
136
private:
135
- std::pair<SpaceInfo, bool > read_mo_space ( const std::string& space, psi::Options& options);
137
+ // ==> Class Data <==
136
138
137
139
// / The number of irreducible representations
138
140
size_t nirrep_;
139
141
// / The number of molecular orbitals per irrep
140
142
psi::Dimension nmopi_;
141
- // / The mo space info
143
+ // / Information about each elementary space stored in a map
142
144
std::map<std::string, SpaceInfo> mo_spaces_;
143
145
144
146
std::vector<std::string> elementary_spaces_{" FROZEN_DOCC" , " RESTRICTED_DOCC" , " ACTIVE" ,
@@ -158,10 +160,16 @@ class MOSpaceInfo {
158
160
{" GENERALIZED PARTICLE" , {" ACTIVE" , " RESTRICTED_UOCC" }},
159
161
{" CORE" , {" RESTRICTED_DOCC" }},
160
162
{" VIRTUAL" , {" RESTRICTED_UOCC" }}};
163
+
161
164
// / The names of the orbital spaces
162
165
std::vector<std::string> space_names_;
166
+
163
167
// / The map from all MO to the correlated MOs (excludes frozen core/virtual)
164
168
std::vector<size_t > mo_to_cmo_;
169
+
170
+ // ==> Class functions <==
171
+ // / Read information about each elementary space from the psi Options object
172
+ std::pair<SpaceInfo, bool > read_mo_space (const std::string& space, psi::Options& options);
165
173
};
166
174
167
175
std::shared_ptr<MOSpaceInfo> make_mo_space_info (std::shared_ptr<psi::Wavefunction> ref_wfn,
0 commit comments