Skip to content

Commit 59843de

Browse files
committed
Fix bug of reading INPUT file when DFT+U is called
1 parent c64bc25 commit 59843de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/input.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,7 @@ bool Input::Read(const std::string &fn)
15701570
while (ifs.good())
15711571
{
15721572
ifs >> word1;
1573+
if(ifs.eof() != 0) break;
15731574
strtolower(word1, word); // convert uppercase std::string to lower case; word1 --> word
15741575

15751576
if (strcmp("dftu_type", word) == 0)

0 commit comments

Comments
 (0)