Skip to content

Commit

Permalink
Read reference charges to matrix before using them (#31)
Browse files Browse the repository at this point in the history
Setting up the reference charges in a separate routine so that
alternative reference charges can be used in weight_references.

---------

Co-authored-by: Hagen Neugebauer <[email protected]>
  • Loading branch information
haneug and Hagen Neugebauer authored Aug 1, 2024
1 parent 4c8b61e commit 052eebc
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 123 deletions.
5 changes: 4 additions & 1 deletion include/dftd_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class TD4Model {
const TMolecule &mol,
const TVector<double> &cn,
const TVector<double> &q,
const TMatrix<double> &refq,
TMatrix<double> &gwvec,
TMatrix<double> &dgwdcn,
TMatrix<double> &dgwdq,
Expand All @@ -65,7 +66,9 @@ class TD4Model {
bool lgrad = false
) const;

int set_refalpha_eeq(const TMolecule &mol, TMatrix<double> &alpha) const;
virtual int set_refq_eeq(const TMolecule &mol, TMatrix<double> &refq) const;

virtual int set_refalpha_eeq(const TMolecule &mol, TMatrix<double> &alpha) const;
};

extern inline double trapzd(const double a[23], const double b[23]);
Expand Down
Loading

0 comments on commit 052eebc

Please sign in to comment.