Changeset 8d56a6 for src/Parser
- Timestamp:
- Jun 21, 2018, 8:31:25 AM (7 years ago)
- Branches:
- Candidate_v1.6.1, ChemicalSpaceEvaluator
- Children:
- d83d64, f5ea10
- Parents:
- 3e334e (diff), 4fc0ea (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TremoloParser.cpp
r3e334e r8d56a6 510 510 << currentAtom->GetTrueFather()->getId() << " at time step " << _timestep); 511 511 512 // note down default precision 513 std::streamsize defaultprecision=file->precision(); 514 std::streamsize highprecision=10; 515 512 516 for (usedFields_t::iterator it = usedFields_save.begin(); it != usedFields_save.end(); it++) { 513 517 currentField = knownKeys[it->substr(0, it->find("="))]; … … 516 520 // for the moment, assume there are always three dimensions 517 521 LOG(3, "Writing for type " << knownKeyNames[currentField] << ": " << currentAtom->getPositionAtStep(_timestep)); 522 file->precision(highprecision); 518 523 *file << currentAtom->atStep(0, _timestep) << "\t"; 519 524 *file << currentAtom->atStep(1, _timestep) << "\t"; 520 525 *file << currentAtom->atStep(2, _timestep) << "\t"; 526 file->precision(defaultprecision); 521 527 break; 522 528 case TremoloKey::u : 523 529 // for the moment, assume there are always three dimensions 524 530 LOG(3, "Writing for type " << knownKeyNames[currentField] << ": " << currentAtom->getAtomicVelocityAtStep(_timestep)); 531 file->precision(highprecision); 525 532 *file << currentAtom->getAtomicVelocityAtStep(_timestep)[0] << "\t"; 526 533 *file << currentAtom->getAtomicVelocityAtStep(_timestep)[1] << "\t"; 527 534 *file << currentAtom->getAtomicVelocityAtStep(_timestep)[2] << "\t"; 535 file->precision(defaultprecision); 528 536 break; 529 537 case TremoloKey::F : 530 538 // for the moment, assume there are always three dimensions 531 539 LOG(3, "Writing for type " << knownKeyNames[currentField] << ": " << currentAtom->getAtomicForceAtStep(_timestep)); 540 file->precision(highprecision); 532 541 *file << currentAtom->getAtomicForceAtStep(_timestep)[0] << "\t"; 533 542 *file << currentAtom->getAtomicForceAtStep(_timestep)[1] << "\t"; 534 543 *file << currentAtom->getAtomicForceAtStep(_timestep)[2] << "\t"; 544 file->precision(defaultprecision); 535 545 break; 536 546 case TremoloKey::type :
Note:
See TracChangeset
for help on using the changeset viewer.