Skip to content

Commit

Permalink
DFT: VV10 computer now takes an input density
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed Jan 21, 2018
1 parent 301741d commit bead874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions psi4/src/psi4/libfock/v.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ std::shared_ptr<BlockOPoints> VBase::get_block(int block) { return grid_->blocks
size_t VBase::nblocks() { return grid_->blocks().size(); }
void VBase::finalize() { grid_.reset(); }

double VBase::vv10_nlc(SharedMatrix ret) {
double VBase::vv10_nlc(SharedMatrix D, SharedMatrix ret) {
timer_on("V: VV10");
timer_on("Setup");

Expand Down Expand Up @@ -236,7 +236,7 @@ double VBase::vv10_nlc(SharedMatrix ret) {
// Need a points worker per thread, only need RKS-like terms
auto point_tmp = std::make_shared<RKSFunctions>(primary_, max_points, max_functions);
point_tmp->set_ansatz(functional_->ansatz());
point_tmp->set_pointers(D_AO_[0]);
point_tmp->set_pointers(D);
nl_point_workers.push_back(point_tmp);

// Scratch dir
Expand Down Expand Up @@ -599,7 +599,7 @@ void RV::compute_V(std::vector<SharedMatrix> ret) {
// Do we need VV10?
double vv10_e = 0.0;
if (functional_->needs_vv10()) {
vv10_e = vv10_nlc(V_AO);
vv10_e = vv10_nlc(D_AO_[0], V_AO);
}

// Set the result
Expand Down
2 changes: 1 addition & 1 deletion psi4/src/psi4/libfock/v.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class VBase {
bool grac_initialized_;

// VV10 dispersion, return vv10_nlc energy
double vv10_nlc(SharedMatrix ret);
double vv10_nlc(SharedMatrix D, SharedMatrix ret);

/// Set things up
void common_init();
Expand Down

0 comments on commit bead874

Please sign in to comment.