Skip to content

Commit 052eebc

Browse files
haneugHagen Neugebauer
andauthored
Read reference charges to matrix before using them (#31)
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]>
1 parent 4c8b61e commit 052eebc

File tree

4 files changed

+148
-123
lines changed

4 files changed

+148
-123
lines changed

include/dftd_model.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class TD4Model {
4848
const TMolecule &mol,
4949
const TVector<double> &cn,
5050
const TVector<double> &q,
51+
const TMatrix<double> &refq,
5152
TMatrix<double> &gwvec,
5253
TMatrix<double> &dgwdcn,
5354
TMatrix<double> &dgwdq,
@@ -65,7 +66,9 @@ class TD4Model {
6566
bool lgrad = false
6667
) const;
6768

68-
int set_refalpha_eeq(const TMolecule &mol, TMatrix<double> &alpha) const;
69+
virtual int set_refq_eeq(const TMolecule &mol, TMatrix<double> &refq) const;
70+
71+
virtual int set_refalpha_eeq(const TMolecule &mol, TMatrix<double> &alpha) const;
6972
};
7073

7174
extern inline double trapzd(const double a[23], const double b[23]);

0 commit comments

Comments
 (0)