Skip to content

Commit

Permalink
synch
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlutsko committed Oct 15, 2023
1 parent a963001 commit 54051db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DFT.cpp
Expand Up @@ -168,17 +168,17 @@ double DFT::calculateFreeEnergyAndDerivatives(bool onlyFex, bool H_dot_Force)

DFT_Vec &dF = s->getDF();
// HERE
// DFT_Vec dF_copy(dF);
// s->convert_to_alias_deriv(dF);
// s->convert_to_alias_deriv(dF); // we need two factors of drho_dx
DFT_Vec dF_copy(dF);
s->convert_to_alias_deriv(dF);
s->convert_to_alias_deriv(dF); // we need two factors of drho_dx
//

DFT_Vec first_term(dF.size());
matrix_dot_v1(dF,first_term);

// HERE
// s->square_and_scale_with_d2rho_dx2(dF_copy);
// first_term += dF_copy;
s->square_and_scale_with_d2rho_dx2(dF_copy);
first_term += dF_copy;
//

dF.set(first_term);
Expand Down

0 comments on commit 54051db

Please sign in to comment.