Skip to content

Commit

Permalink
make ECP detection compatible with all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
camelto2 committed Oct 7, 2024
1 parent b931970 commit 0eb12cf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/QMCTools/DiracParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,15 @@ void DiracParser::getGeometry(std::istream& is)
//now overwrite charge for pseudsized atoms
is.clear();
is.seekg(pivot_begin);
while (lookFor(is, "Nuclear Gaussian exponent for atom", aline))
while (lookFor(is, "This atomic center has RECP with", aline))
{
parsewords(aline.c_str(), currentWords);
int z = std::stoi(currentWords[7]);
std::getline(is, aline);
if (aline.size() == 0)
break;
int zcore = std::stoi(currentWords[7]);
//found an ECP to replace
ECP = true;
getwords(currentWords, is);
int zeff = std::stoi(currentWords[6]);
zeffMap.find(IonName[z])->second = zeff;
zeffMap.find(IonName[zcore + zeff])->second = zeff;
}
is.clear();
is.seekg(pivot_begin);
Expand Down

0 comments on commit 0eb12cf

Please sign in to comment.