Skip to content

Commit

Permalink
Update deepmd.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Nov 10, 2024
1 parent bb8d38e commit e6bfebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/api_c/include/deepmd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,7 @@ class DeepSpinModelDevi : public DeepBaseModelDevi {
ener.resize(numb_models);
force.resize(numb_models);
force_mag.resize(numb_models);
// virial.resize(numb_models);
virial.resize(numb_models);
for (int i = 0; i < numb_models; i++) {
ener[i] = energy_flat[i];
force[i].resize(static_cast<size_t>(natoms) * 3);
Expand Down

0 comments on commit e6bfebe

Please sign in to comment.