| 440 |
|
} |
| 441 |
|
|
| 442 |
|
NonBondedInteractionType* ForceField::getNonBondedInteractionType(const std::string &at1, const std::string &at2) { |
| 443 |
+ |
|
| 444 |
|
std::vector<std::string> keys; |
| 445 |
|
keys.push_back(at1); |
| 446 |
|
keys.push_back(at2); |
| 500 |
|
int bestScore = foundNBI[0].first; |
| 501 |
|
std::vector<std::string> theKeys = foundNBI[0].second; |
| 502 |
|
|
| 503 |
< |
NonBondedInteractionType* bestType = nonBondedInteractionTypeCont_.find(theKeys); |
| 503 |
< |
|
| 503 |
> |
NonBondedInteractionType* bestType = nonBondedInteractionTypeCont_.find(theKeys); |
| 504 |
|
return bestType; |
| 505 |
|
} else { |
| 506 |
< |
//if no exact match found, try wild card match |
| 507 |
< |
return nonBondedInteractionTypeCont_.find(keys, wildCardAtomTypeName_); |
| 506 |
> |
//if no exact match found, try wild card match |
| 507 |
> |
return nonBondedInteractionTypeCont_.find(keys, wildCardAtomTypeName_); |
| 508 |
|
} |
| 509 |
|
} |
| 510 |
|
} |