Changes in src/Parser/PcpParser.cpp [e97a44:d74077]
- File:
-
- 1 edited
-
src/Parser/PcpParser.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/PcpParser.cpp
re97a44 rd74077 14 14 #include "element.hpp" 15 15 #include "Helpers/Assert.hpp" 16 #include "Helpers/Log.hpp" 17 #include "Helpers/Verbose.hpp" 18 #include "LinearAlgebra/Matrix.hpp" 16 #include "log.hpp" 19 17 #include "molecule.hpp" 20 18 #include "PcpParser.hpp" 21 19 #include "periodentafel.hpp" 22 20 #include "ThermoStatContainer.hpp" 21 #include "verbose.hpp" 23 22 #include "World.hpp" 23 #include "Matrix.hpp" 24 24 #include "Box.hpp" 25 25 … … 332 332 void PcpParser::save(std::ostream* file) 333 333 { 334 DoLog(0) && (Log() << Verbose(0) << "Saving changes to pcp." << std::endl);335 336 334 const Matrix &domain = World::getInstance().getDomain().getM(); 337 335 class ThermoStatContainer *Thermostats = World::getInstance().getThermostats(); … … 462 460 PlaneWaveSpecifics.MaxPsiDouble = PlaneWaveSpecifics.PsiMaxNoDown = PlaneWaveSpecifics.PsiMaxNoUp = PlaneWaveSpecifics.PsiType = 0; 463 461 for (vector<atom *>::iterator runner = allatoms.begin(); runner != allatoms.end(); ++runner) { 464 PlaneWaveSpecifics.MaxPsiDouble += (*runner)-> type->NoValenceOrbitals;462 PlaneWaveSpecifics.MaxPsiDouble += (*runner)->getType()->NoValenceOrbitals; 465 463 } 466 464 cout << PlaneWaveSpecifics.MaxPsiDouble << endl; … … 497 495 // insert all found elements into the map 498 496 for (vector<atom *>::iterator AtomRunner = allatoms.begin();AtomRunner != allatoms.end();++AtomRunner) { 499 Inserter = PresentElements.insert(pair<int, int>((*AtomRunner)-> type->Z, 1));497 Inserter = PresentElements.insert(pair<int, int>((*AtomRunner)->getType()->Z, 1)); 500 498 if (!Inserter.second) // increase if present 501 499 Inserter.first->second += 1; … … 528 526 int nr = 0; 529 527 for (vector<atom *>::iterator AtomRunner = allatoms.begin();AtomRunner != allatoms.end();++AtomRunner) { 530 Inserter = ZtoCountMap.insert( pair<int, int>((*AtomRunner)-> type->Z, 1) );528 Inserter = ZtoCountMap.insert( pair<int, int>((*AtomRunner)->getType()->Z, 1) ); 531 529 if (!Inserter.second) 532 530 Inserter.first->second += 1; 533 const int Z = (*AtomRunner)-> type->Z;531 const int Z = (*AtomRunner)->getType()->Z; 534 532 *file << "Ion_Type" << ZtoIndexMap[Z] << "_" << ZtoCountMap[Z] << "\t" << fixed << setprecision(9) << showpoint; 535 *file << (*AtomRunner)-> x[0] << "\t" << (*AtomRunner)->x[1] << "\t" << (*AtomRunner)->x[2];533 *file << (*AtomRunner)->at(0) << "\t" << (*AtomRunner)->at(1) << "\t" << (*AtomRunner)->at(2); 536 534 *file << "\t" << (*AtomRunner)->FixedIon; 537 if ((*AtomRunner)-> v.Norm() > MYEPSILON)538 *file << "\t" << scientific << setprecision(6) << (*AtomRunner)-> v[0] << "\t" << (*AtomRunner)->v[1] << "\t" << (*AtomRunner)->v[2] << "\t";535 if ((*AtomRunner)->AtomicVelocity.Norm() > MYEPSILON) 536 *file << "\t" << scientific << setprecision(6) << (*AtomRunner)->AtomicVelocity[0] << "\t" << (*AtomRunner)->AtomicVelocity[1] << "\t" << (*AtomRunner)->AtomicVelocity[2] << "\t"; 539 537 *file << " # molecule nr " << nr++ << endl; 540 538 }
Note:
See TracChangeset
for help on using the changeset viewer.
