Skip to content

Commit

Permalink
Merge pull request #770 from BBBuZHIDAO/init_struct_energy
Browse files Browse the repository at this point in the history
Init Struct Energy for Train Mode 1 and 2
  • Loading branch information
brucefan1983 authored Oct 24, 2024
2 parents 070d035 + e4a722f commit 3007dba
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 3007dba

Please sign in to comment.