Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
susilehtola committed Sep 21, 2023
1 parent 0dc9697 commit f13bd12
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/integratorxx/atomic_densities/SlaterAtomicShell.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class SlaterTypeAtomicShell {
beta_occupations_(beta_occupations) {
// Size checks
assert(exponents_.size() == quantum_numbers_.size());
assert(exponents_.size() == orbital_coefficients_.size());
assert(alpha_occupations_.size() * exponents_.size() ==
orbital_coefficients_.size());
assert(beta_occupations_.size() * exponents_.size() ==
Expand All @@ -50,8 +49,8 @@ class SlaterTypeAtomicShell {
normalization_.resize(exponents_.size());
for(size_t ix = 0; ix < exponents_.size(); ix++) {
normalization_[ix] =
std::pow(2.0 * exponents_[ix], quantum_numbers_[ix] + 0.5) *
IntegratorXX::factorial(2 * quantum_numbers_[ix]);
std::pow(2.0 * exponents_[ix], quantum_numbers_[ix] + 0.5) /
std::sqrt(IntegratorXX::factorial(2 * quantum_numbers_[ix]));
}
};

Expand Down

0 comments on commit f13bd12

Please sign in to comment.