Skip to content

Commit

Permalink
Update read_rhog.cpp (#3887)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohan Chen <mohan.chen.chen.mohan@gmail.com>
  • Loading branch information
Zjhjunhao and mohanchen committed Apr 3, 2024
1 parent 2ae3609 commit d4fab4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/module_io/read_rhog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ bool ModuleIO::read_rhog(const std::string& filename, const ModulePW::PW_Basis*

Binstream ifs;
bool error = false;
int gamma_only_in, npwtot_in, nspin_in, size;
int gamma_only_in = 0;
int npwtot_in = 0;
int nspin_in = 0;
int size = 0;
double b1[3], b2[3], b3[3];

if (GlobalV::RANK_IN_POOL == 0)
Expand Down

0 comments on commit d4fab4d

Please sign in to comment.