Skip to content

Commit dce2ccb

Browse files
authored
Merge pull request #132 from dyzheng/develop
Fix : don't print cube file if out_chg is 0
2 parents 1a279a2 + 5f12227 commit dce2ccb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/src_io/write_rho_cube.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ void Charge::write_rho_cube(
99
const int &precision)
1010
{
1111
ModuleBase::TITLE("Charge","write_rho_cube");
12-
12+
if (out_chg==0)
13+
{
14+
return;
15+
}
1316
time_t start, end;
1417
std::ofstream ofs;
1518

0 commit comments

Comments
 (0)