Skip to content

Commit

Permalink
Merge branch 'real_time_force_stress_fix' into 'master'
Browse files Browse the repository at this point in the history
Real time force stress fix

See merge request npneq/inq!1190
  • Loading branch information
xavierandrade committed Jan 15, 2025
2 parents 7a80a51 + 96ead7e commit bf86e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/real_time/viewables.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class viewables {
}

auto forces() {
if(forces_.size() == 0) forces_ = observables::forces_stress{ions_, electrons_, ham_}.forces;
if(forces_.size() == 0) forces_ = observables::forces_stress{ions_, electrons_, ham_, energy_}.forces;
return forces_;
}

Expand Down

0 comments on commit bf86e06

Please sign in to comment.