Skip to content

Commit 5f12227

Browse files
committed
Fix : don't print cube file if out_chg is 0
1 parent 8b81643 commit 5f12227

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)