| 34 |
|
* |
| 35 |
|
* [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). |
| 36 |
|
* [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). |
| 37 |
< |
* [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). |
| 37 |
> |
* [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008). |
| 38 |
|
* [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). |
| 39 |
|
* [4] , Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). * |
| 40 |
|
* |
| 231 |
|
for (int i=0; i < nComponents; i++) { |
| 232 |
|
molFractions[i] = (RealType)(nMol.at(i))/(RealType)nSites; |
| 233 |
|
totalMolecules += nMol.at(i); |
| 234 |
< |
molecularMasses.push_back(getMolMass(oldInfo->getMoleculeStamp(i), |
| 235 |
< |
oldInfo->getForceField())); |
| 234 |
> |
molecularMasses.push_back(MoLocator::getMolMass(oldInfo->getMoleculeStamp(i), |
| 235 |
> |
oldInfo->getForceField())); |
| 236 |
|
totalMass += (RealType)(nMol.at(i)) * molecularMasses.at(i); |
| 237 |
|
} |
| 238 |
|
RealType avgMass = totalMass / (RealType) totalMolecules; |
| 283 |
|
|
| 284 |
|
createMdFile(inputFileName, outputFileName, nMol); |
| 285 |
|
|
| 286 |
< |
if (oldInfo != NULL) |
| 287 |
< |
delete oldInfo; |
| 286 |
> |
delete oldInfo; |
| 287 |
|
|
| 288 |
|
// We need to read in the new SimInfo object, then Parse the |
| 289 |
|
// md file and set up the system |