| 35 |
|
* |
| 36 |
|
* [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). |
| 37 |
|
* [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). |
| 38 |
< |
* [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). |
| 38 |
> |
* [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008). |
| 39 |
|
* [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). |
| 40 |
|
* [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). |
| 41 |
|
*/ |
| 56 |
|
DeclareParameter(DistanceMixingRule, std::string); |
| 57 |
|
DeclareParameter(DistanceType, std::string); |
| 58 |
|
DeclareParameter(EnergyMixingRule, std::string); |
| 59 |
– |
DeclareParameter(CutoffPolicy, std::string); |
| 59 |
|
DeclareParameter(EnergyUnitScaling, RealType); |
| 60 |
|
DeclareParameter(MetallicEnergyUnitScaling, RealType); |
| 61 |
|
DeclareParameter(DistanceUnitScaling, RealType); |
| 82 |
|
CheckParameter(DistanceType, isEqualIgnoreCase(std::string("sigma")) || isEqualIgnoreCase(std::string("Rmin"))); |
| 83 |
|
CheckParameter(EnergyMixingRule, isEqualIgnoreCase(std::string("arithmetic")) || isEqualIgnoreCase(std::string("geometric")) || isEqualIgnoreCase(std::string("hhg"))); |
| 84 |
|
CheckParameter(TorsionAngleConvention, isEqualIgnoreCase(std::string("180_is_trans")) || isEqualIgnoreCase(std::string("0_is_trans"))); |
| 86 |
– |
CheckParameter(CutoffPolicy, isEqualIgnoreCase(std::string("MIX")) || isEqualIgnoreCase(std::string("MAX")) || isEqualIgnoreCase(std::string("TRADITIONAL"))); |
| 85 |
|
CheckParameter(EAMMixingMethod, isEqualIgnoreCase(std::string("JOHNSON")) || isEqualIgnoreCase(std::string("DAW"))); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
bool setData(const std::string& keyword, const std::string& value) { |
| 89 |
< |
bool result; |
| 89 |
> |
bool result(false); |
| 90 |
|
ParamMap::iterator i =parameters_.find(keyword); |
| 91 |
|
if (i != parameters_.end()) { |
| 92 |
|
if(isInteger(value)){ |