| 66 |
|
newMdFile.open(newMdFileName.c_str()); |
| 67 |
|
oldMdFile.getline(buffer, MAXLEN); |
| 68 |
|
|
| 69 |
– |
unsigned int i = 0; |
| 69 |
|
while (!oldMdFile.eof()) { |
| 70 |
|
|
| 71 |
|
//correct molecule number |
| 166 |
|
CurlingStoneDecahedron* csd = new CurlingStoneDecahedron(columnAtoms, nShells, twinAtoms, truncatedPlanes); |
| 167 |
|
Points = csd->getPoints(); |
| 168 |
|
} |
| 170 |
– |
|
| 171 |
– |
|
| 169 |
|
|
| 170 |
|
outputFileName = args_info.output_arg; |
| 171 |
|
|
| 172 |
< |
//creat new .md file on fly which corrects the number of molecule |
| 172 |
> |
// create a new .md file on fly which corrects the number of |
| 173 |
> |
// molecules |
| 174 |
|
|
| 175 |
|
createMdFile(inputFileName, outputFileName, Points.size()); |
| 176 |
|
|
| 234 |
|
|
| 235 |
|
delete writer; |
| 236 |
|
|
| 237 |
< |
// cleanup a by calling sim error..... |
| 237 |
> |
// clean up by calling simError..... |
| 238 |
|
sprintf(painCave.errMsg, "A new OpenMD file called \"%s\" has been " |
| 239 |
|
"generated.\n", outputFileName.c_str()); |
| 240 |
|
painCave.isFatal = 0; |