Skip to content

Commit

Permalink
DFT: VV10 UKS needs more checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed Jan 21, 2018
1 parent 5843412 commit 04e5b1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions psi4/src/psi4/libfock/v.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,8 @@ void UV::compute_V(std::vector<SharedMatrix> ret) {
throw PSIEXCEPTION("V: UKS should have two D/V Matrices");
}

if (functional_->needs_grac()) {
throw PSIEXCEPTION("V: UKS cannot compute GRAC corrections.");
if (functional_->needs_grac() || functional_->needs_vv10()) {
throw PSIEXCEPTION("V: UKS cannot compute VV10 or GRAC corrections.");
}

// Thread info
Expand Down Expand Up @@ -1683,8 +1683,8 @@ void UV::compute_V(std::vector<SharedMatrix> ret) {

vv10_e = vv10_nlc(Ds, ret);

Va_AO->axpy(1.0, ret);
Vb_AO->axpy(1.0, ret);
Va_AO->axpy(0.5, ret);
Vb_AO->axpy(0.5, ret);
}

// Set the result
Expand Down

0 comments on commit 04e5b1a

Please sign in to comment.