Skip to content

Commit c5b10f3

Browse files
committed
Simplifying CGF normalization
1 parent 5be0045 commit c5b10f3

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/pyqint/cgf.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -360,30 +360,9 @@ unsigned int CGF::max_primitive_l() const noexcept {
360360
* @return normalization constant
361361
*/
362362
double CGF::get_contraction_norm() const {
363-
// NOTE: any GTO is fine for the same shell tuple (lmn)
364-
assert(gtos.size() != 0LU && "No GTOs found!");
365-
366-
// Check if all GTOs have the same angular momentum
367-
const auto& first = this->get_gto(0);
368-
const auto l = first.get_l();
369-
const auto m = first.get_m();
370-
const auto n = first.get_n();
371-
372-
// NOTE: only needed for the spherical harmonics test; otherwise not needed...
373-
for (size_t i = 1; i < this->size(); ++i) {
374-
const auto& gto = this->get_gto(i);
375-
if (gto.get_l() != l || gto.get_m() != m || gto.get_n() != n) {
376-
// Mixed angular momentum (e.g., spherical harmonics)
377-
// Coefficients are pre-normalised; no additional factor needed
378-
return 1.0;
379-
}
380-
}
381-
382363
double sum = 0.0;
383364
for (size_t i = 0; i < this->size(); ++i) {
384365
for (size_t j = 0; j < this->size(); ++j) {
385-
// const double a_i = this->get_coefficient_gto(i);
386-
// const double a_j = this->get_coefficient_gto(j);
387366
const double a_i = this->get_norm_gto(i) * this->get_coefficient_gto(i);
388367
const double a_j = this->get_norm_gto(j) * this->get_coefficient_gto(j);
389368
const auto& gto_i = this->get_gto(i);

0 commit comments

Comments
 (0)