Skip to content

Commit

Permalink
Fix issue in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
susilehtola committed Jan 15, 2024
1 parent 40bb0b4 commit 146f703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/density_fitting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,10 @@ arma::mat DensityFit::calcJ(const arma::mat & P) const {

// Get the expansion coefficients
arma::vec c=compute_expansion(P);
return digestJ(c);
return calcJ_vector(c);
}

arma::mat DensityFit::calcJ(const arma::vec & c) const {
arma::mat DensityFit::calcJ_vector(const arma::vec & c) const {
if(c.n_elem != Naux) {
std::ostringstream oss;
oss << "Error in DensityFit: Naux = " << Naux << ", c.n_elem = " << c.n_elem << "!\n";
Expand Down
2 changes: 1 addition & 1 deletion src/density_fitting.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class DensityFit {
/// Get Coulomb matrix from P
std::vector<arma::mat> calcJ(const std::vector<arma::mat> & P) const;
/// Digest J matrix from computed expansion
arma::mat digest(const arma::vec & gamma) const;
arma::mat calcJ_vector(const arma::vec & gamma) const;

/// Calculate force from P
arma::vec forceJ(const arma::mat & P);
Expand Down

0 comments on commit 146f703

Please sign in to comment.