Skip to content

Commit

Permalink
ghij presumably working, frozen orbitals still incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
fbischoff committed Mar 30, 2024
1 parent 6ed896f commit e33c946
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/madness/chem/mp3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -766,18 +766,22 @@ double MP3::compute_mp3_ghij(World& world,
// \sum_j tau_ij(1,2) * phi_j(1)
ClusterFunction tau_ij_j;

for (int j = parameters.freeze(); j < nocc; ++j) {
// auto tmp2 = multiply(pair_square(i, j), mo_bra[i], {0, 1, 2});
// for (auto& t: tmp2) tau_kk_i[j].push_back(t);
auto tmp2 = multiply(pair_square(i, j), mo_bra[j], {3, 4, 5});
for (auto& t: tmp2) tau_kk_i.push_back(t);

auto tmp3 = multiply(pair_square(i, j), mo_bra[j], {0, 1, 2});
for (auto& t: tmp3) tau_ij_j.push_back(t);
for (int ii = parameters.freeze(); ii < nocc; ++ii) {
// for (int j = parameters.freeze(); j < nocc; ++j) {
auto tmp2 = multiply(pair_square(ii, i), mo_bra[ii], {0, 1, 2});
for (auto& t: tmp2) tau_kk_i.push_back(t);
// }
}

// std::vector<std::string> consolidation={"op_pure_to_pure","remove_lindep","op_dec_to_dec"};
std::vector<std::string> consolidation={"op_pure_to_pure","remove_lindep","op_dec_to_pure"};
// for (int i = parameters.freeze(); i < nocc; ++i) {
for (int j = parameters.freeze(); j < nocc; ++j) {
auto tmp3 = multiply(pair_square(i, j), mo_bra[j], {0, 1, 2});
for (auto& t: tmp3) tau_ij_j.push_back(t);
}
// }

std::vector<std::string> consolidation={"op_pure_to_pure","remove_lindep","op_dec_to_dec"};
// std::vector<std::string> consolidation={"op_pure_to_pure","remove_lindep","op_dec_to_pure"};
print("consolidating with ",consolidation);
ClusterFunction intermediate;
// for (int i = parameters.freeze(); i < nocc; ++i) {
Expand Down

0 comments on commit e33c946

Please sign in to comment.