Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/PcpParser.cpp

    re97a44 rd74077  
    1414#include "element.hpp"
    1515#include "Helpers/Assert.hpp"
    16 #include "Helpers/Log.hpp"
    17 #include "Helpers/Verbose.hpp"
    18 #include "LinearAlgebra/Matrix.hpp"
     16#include "log.hpp"
    1917#include "molecule.hpp"
    2018#include "PcpParser.hpp"
    2119#include "periodentafel.hpp"
    2220#include "ThermoStatContainer.hpp"
     21#include "verbose.hpp"
    2322#include "World.hpp"
     23#include "Matrix.hpp"
    2424#include "Box.hpp"
    2525
     
    332332void PcpParser::save(std::ostream* file)
    333333{
    334   DoLog(0) && (Log() << Verbose(0) << "Saving changes to pcp." << std::endl);
    335 
    336334  const Matrix &domain = World::getInstance().getDomain().getM();
    337335  class ThermoStatContainer *Thermostats = World::getInstance().getThermostats();
     
    462460  PlaneWaveSpecifics.MaxPsiDouble = PlaneWaveSpecifics.PsiMaxNoDown = PlaneWaveSpecifics.PsiMaxNoUp = PlaneWaveSpecifics.PsiType = 0;
    463461  for (vector<atom *>::iterator runner = allatoms.begin(); runner != allatoms.end(); ++runner) {
    464     PlaneWaveSpecifics.MaxPsiDouble += (*runner)->type->NoValenceOrbitals;
     462    PlaneWaveSpecifics.MaxPsiDouble += (*runner)->getType()->NoValenceOrbitals;
    465463  }
    466464  cout << PlaneWaveSpecifics.MaxPsiDouble << endl;
     
    497495  // insert all found elements into the map
    498496  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));
    500498    if (!Inserter.second) // increase if present
    501499      Inserter.first->second += 1;
     
    528526  int nr = 0;
    529527  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) );
    531529    if (!Inserter.second)
    532530      Inserter.first->second += 1;
    533     const int Z = (*AtomRunner)->type->Z;
     531    const int Z = (*AtomRunner)->getType()->Z;
    534532    *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);
    536534    *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";
    539537    *file << " # molecule nr " << nr++ << endl;
    540538  }
Note: See TracChangeset for help on using the changeset viewer.