| # | Line 333 | Line 333 | namespace OpenMD { | |
|---|---|---|
| 333 | atomInfo->frc[1], atomInfo->frc[2]); | |
| 334 | line += buffer; | |
| 335 | } | |
| 336 | + | if (doElectricFields_ && atomInfo->hasElectricField) { |
| 337 | + | sprintf(buffer, "%15.8f%15.8f%15.8f", atomInfo->eField[0], |
| 338 | + | atomInfo->eField[1], atomInfo->eField[2]); |
| 339 | + | line += buffer; |
| 340 | + | } |
| 341 | frame.push_back(line); | |
| 342 | } | |
| 343 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |