Skip to content

Commit

Permalink
FIX BUG: init struct energy for dipole
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBuZHIDAO committed Oct 24, 2024
1 parent dafd341 commit e4a722f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main_nep/structure.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct Structure {
int has_virial;
int has_temperature;
float weight;
float energy;
float energy = 0.0f;
float virial[6];
float box_original[9];
float volume;
Expand Down

0 comments on commit e4a722f

Please sign in to comment.