Skip to content

Commit 2e373f1

Browse files
committed
Update license date
1 parent 8661d18 commit 2e373f1

File tree

182 files changed

+242
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+242
-202
lines changed

AUTHORS

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
All contributors, in alphabetical order:
22

3-
Francesco A. Evangelista <[email protected]>
4-
Kevin P. Hannon <[email protected]>
5-
Chenyang Li <[email protected]>
6-
Jeffrey Schriber <[email protected]>
7-
Tianyuan Zhang <[email protected]>
3+
Chenxi Cai
4+
Francesco A. Evangelista
5+
Kevin P. Hannon
6+
Nan He
7+
Renke Huang
8+
Chenyang Li
9+
Jeffrey Schriber
10+
Nicholas Stair
11+
Shuhe Wang
12+
Tianyuan Zhang

__init__.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,20 @@
5050
register_forte_options(forte_options) # py-side
5151
forte.read_options(forte_options) # c++-side
5252

53-
# If we are running psi4, puths the options defined in forte_options to psi
53+
# If we are running psi4, push the options defined in forte_options to psi
5454
if 'psi4' in sys.modules:
5555
psi_options = psi4.core.get_options()
5656
psi_options.set_current_module('FORTE')
5757
forte_options.push_options_to_psi4(psi_options)
5858

59+
# Here we add array options since they are not yet supporte in the ForteOptions class
5960
# /*- Number of frozen occupied orbitals per irrep (in Cotton order) -*/
6061
psi_options.add_array("FROZEN_DOCC");
61-
6262
# /*- Number of restricted doubly occupied orbitals per irrep (in Cotton
6363
# * order) -*/
6464
psi_options.add_array("RESTRICTED_DOCC");
65-
6665
# /*- Number of active orbitals per irrep (in Cotton order) -*/
6766
psi_options.add_array("ACTIVE");
68-
6967
# /*- Number of restricted unoccupied orbitals per irrep (in Cotton order)
7068
# * -*/
7169
psi_options.add_array("RESTRICTED_UOCC");
@@ -80,15 +78,10 @@
8078
# -*/
8179
psi_options.add_array("ROTATE_MOS");
8280

83-
# //////////////////////////////////////////////////////////////
8481
# /// OPTIONS FOR STATE-AVERAGE CASCI/CASSCF
85-
# //////////////////////////////////////////////////////////////
8682
# /*- An array of states [[irrep1, multi1, nstates1], [irrep2, multi2, nstates2], ...] -*/
8783
psi_options.add_array("AVG_STATE");
8884
# /*- An array of weights [[w1_1, w1_2, ..., w1_n], [w2_1, w2_2, ..., w2_n], ...] -*/
8985
psi_options.add_array("AVG_WEIGHT");
9086
# /*- Number of roots per irrep (in Cotton order) -*/
9187
psi_options.add_array("NROOTPI");
92-
93-
94-

src/base_classes/active_space_solver.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/base_classes/active_space_solver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/base_classes/forte_options.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/base_classes/mo_space_info.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER,
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER,
99
* AUTHORS).
1010
*
1111
* The copyrights for code used from other parties are included in
@@ -47,8 +47,6 @@ MOSpaceInfo::MOSpaceInfo(psi::Dimension& nmopi) : nirrep_(nmopi.n()), nmopi_(nmo
4747
}
4848
}
4949

50-
MOSpaceInfo::~MOSpaceInfo() {}
51-
5250
size_t MOSpaceInfo::size(const std::string& space) {
5351
size_t s = 0;
5452
if (composite_spaces_.count(space) == 0) {

src/base_classes/mo_space_info.h

+12-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER,
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER,
99
* AUTHORS).
1010
*
1111
* The copyrights for code used from other parties are included in
@@ -106,8 +106,10 @@ using SpaceInfo = std::pair<psi::Dimension, std::vector<MOInfo>>;
106106
*/
107107
class MOSpaceInfo {
108108
public:
109+
// ==> Class Constructor <==
109110
MOSpaceInfo(psi::Dimension& nmopi);
110-
~MOSpaceInfo();
111+
112+
// ==> Class Interface <==
111113

112114
/// @return The names of orbital spaces
113115
std::vector<std::string> space_names() const { return space_names_; }
@@ -132,13 +134,13 @@ class MOSpaceInfo {
132134
size_t nirrep() { return nirrep_; }
133135

134136
private:
135-
std::pair<SpaceInfo, bool> read_mo_space(const std::string& space, psi::Options& options);
137+
// ==> Class Data <==
136138

137139
/// The number of irreducible representations
138140
size_t nirrep_;
139141
/// The number of molecular orbitals per irrep
140142
psi::Dimension nmopi_;
141-
/// The mo space info
143+
/// Information about each elementary space stored in a map
142144
std::map<std::string, SpaceInfo> mo_spaces_;
143145

144146
std::vector<std::string> elementary_spaces_{"FROZEN_DOCC", "RESTRICTED_DOCC", "ACTIVE",
@@ -158,10 +160,16 @@ class MOSpaceInfo {
158160
{"GENERALIZED PARTICLE", {"ACTIVE", "RESTRICTED_UOCC"}},
159161
{"CORE", {"RESTRICTED_DOCC"}},
160162
{"VIRTUAL", {"RESTRICTED_UOCC"}}};
163+
161164
/// The names of the orbital spaces
162165
std::vector<std::string> space_names_;
166+
163167
/// The map from all MO to the correlated MOs (excludes frozen core/virtual)
164168
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);
165173
};
166174

167175
std::shared_ptr<MOSpaceInfo> make_mo_space_info(std::shared_ptr<psi::Wavefunction> ref_wfn,

src/base_classes/reference.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/base_classes/reference.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.
@@ -38,6 +38,8 @@ class MOSpaceInfo;
3838

3939
class Reference {
4040
public:
41+
// ==> Class Interface <==
42+
4143
/// Obtain reference energy
4244
double get_Eref() { return Eref_; }
4345

@@ -124,6 +126,8 @@ class Reference {
124126
}
125127

126128
protected:
129+
// ==> Class Data <==
130+
127131
/// Reference energy (include frozen-core and nuclear repulsion)
128132
double Eref_ = 0.0;
129133

@@ -149,7 +153,7 @@ class Reference {
149153
ambit::Tensor g3bbb_;
150154
};
151155

152-
double compute_Eref_from_reference(Reference &ref, std::shared_ptr<ForteIntegrals> ints,
156+
double compute_Eref_from_reference(Reference& ref, std::shared_ptr<ForteIntegrals> ints,
153157
std::shared_ptr<MOSpaceInfo> mo_space_info, double Enuc);
154158
} // namespace forte
155159

src/base_classes/scf_info.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/base_classes/state_info.cc

+29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
1+
/*
2+
* @BEGIN LICENSE
3+
*
4+
* Forte: an open-source plugin to Psi4 (https://github.com/psi4/psi4)
5+
* that implements a variety of quantum chemistry methods for strongly
6+
* correlated electrons.
7+
*
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
9+
*
10+
* The copyrights for code used from other parties are included in
11+
* the corresponding files.
12+
*
13+
* This program is free software: you can redistribute it and/or modify
14+
* it under the terms of the GNU Lesser General Public License as published by
15+
* the Free Software Foundation, either version 3 of the License, or
16+
* (at your option) any later version.
17+
*
18+
* This program is distributed in the hope that it will be useful,
19+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
* GNU Lesser General Public License for more details.
22+
*
23+
* You should have received a copy of the GNU Lesser General Public License
24+
* along with this program. If not, see http://www.gnu.org/licenses/.
25+
*
26+
* @END LICENSE
27+
*/
28+
129
#include "psi4/libpsi4util/process.h"
30+
#include "psi4/libmints/wavefunction.h"
231
#include "psi4/libmints/molecule.h"
332

433
#include "state_info.h"

src/base_classes/state_info.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.
@@ -29,7 +29,9 @@
2929
#ifndef _state_info_h_
3030
#define _state_info_h_
3131

32-
#include "psi4/libmints/wavefunction.h"
32+
namespace psi {
33+
class Wavefunction;
34+
}
3335

3436
namespace forte {
3537

src/casscf/casscf.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/casscf/casscf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/cc/cc.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/cc/cc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/ci_rdm/ci_rdms.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/ci_rdm/ci_rdms.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/ci_rdm/ci_rdms_dynamic.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/dmrg/dmrgscf.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/dmrg/dmrgscf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/dmrg/dmrgsolver.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/dmrg/dmrgsolver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/fci/binary_graph.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/fci/fci_solver.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.

src/fci/fci_solver.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* that implements a variety of quantum chemistry methods for strongly
66
* correlated electrons.
77
*
8-
* Copyright (c) 2012-2017 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
8+
* Copyright (c) 2012-2019 by its authors (see COPYING, COPYING.LESSER, AUTHORS).
99
*
1010
* The copyrights for code used from other parties are included in
1111
* the corresponding files.
@@ -30,6 +30,7 @@
3030
#define _fci_solver_h_
3131

3232
#include "base_classes/active_space_solver.h"
33+
#include "psi4/libmints/dimension.h"
3334

3435
namespace forte {
3536

0 commit comments

Comments
 (0)