Skip to content

Commit 4a0b03a

Browse files
authored
Merge pull request #820 from pxlxingliang/develop
fix bug: the opended file 'data-H' is not closed
2 parents 3e76325 + 4781363 commit 4a0b03a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/src_pw/test/diago_david_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ TEST(DiagoDavRealSystemTest,dataH)
122122
ModuleBase::ComplexMatrix hmatrix;
123123
std::ifstream ifs("data-H");
124124
DIAGOTEST::readh(ifs,hmatrix);
125+
ifs.close();
125126
DIAGOTEST::hmatrix = hmatrix;
126127
DIAGOTEST::npw = hmatrix.nc;
127128

0 commit comments

Comments
 (0)