Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
second check
Browse files Browse the repository at this point in the history
  • Loading branch information
JensWehner committed Aug 10, 2021
1 parent f5cdc46 commit 8c10935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libtools/elements.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ bool Elements::isEleShort(std::string shortname) {

bool Elements::isMassAssociatedWithElement(double mass, double tolerance) {
auto closestMatch = findShortNameOfElementClosestInMass_(mass);
if (closestMatch.second / _Mass[closestMatch.first] > tolerance) {
if (closestMatch.second > tolerance) {
return false;
}
return true;
Expand Down

0 comments on commit 8c10935

Please sign in to comment.