Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Parser/PcpParser.cpp

    r97b825 r83f176  
     1/*
     2 * Project: MoleCuilder
     3 * Description: creates and alters molecular systems
     4 * Copyright (C)  2010 University of Bonn. All rights reserved.
     5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
     6 */
     7
    18/*
    29 * PcpParser.cpp
     
    613 */
    714
     15// include config.h
     16#ifdef HAVE_CONFIG_H
     17#include <config.h>
     18#endif
     19
     20#include "Helpers/MemDebug.hpp"
     21
    822#include <iostream>
    923#include <iomanip>
    1024
     25//#include "Actions/FragmentationAction/SubgraphDissectionAction.hpp"
    1126#include "atom.hpp"
    1227#include "config.hpp"
     
    349364  // 4. dissect the molecule into connected subgraphs
    350365  // don't do this here ...
    351   //MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this);
     366  //FragmentationSubgraphDissection();
    352367  //delete(mol);
    353368
     
    490505  PlaneWaveSpecifics.MaxPsiDouble = PlaneWaveSpecifics.PsiMaxNoDown = PlaneWaveSpecifics.PsiMaxNoUp = PlaneWaveSpecifics.PsiType = 0;
    491506  for (vector<atom *>::iterator runner = allatoms.begin(); runner != allatoms.end(); ++runner) {
    492     PlaneWaveSpecifics.MaxPsiDouble += (*runner)->getType()->NoValenceOrbitals;
     507    PlaneWaveSpecifics.MaxPsiDouble += (*runner)->getType()->getNoValenceOrbitals();
    493508  }
    494509  cout << PlaneWaveSpecifics.MaxPsiDouble << endl;
     
    525540  // insert all found elements into the map
    526541  for (vector<atom *>::iterator AtomRunner = allatoms.begin();AtomRunner != allatoms.end();++AtomRunner) {
    527     Inserter = PresentElements.insert(pair<int, int>((*AtomRunner)->getType()->Z, 1));
     542    Inserter = PresentElements.insert(pair<int, int>((*AtomRunner)->getType()->getAtomicNumber(), 1));
    528543    if (!Inserter.second) // increase if present
    529544      Inserter.first->second += 1;
     
    540555    const element * const elemental = World::getInstance().getPeriode()->FindElement(iter->first);
    541556    ZtoIndexMap.insert( pair<int,int> (iter->first, counter) );
    542     *file << "Ion_Type" << counter++ << "\t" << iter->second << "\t" << elemental->Z << "\t1.0\t3\t3\t" << fixed << setprecision(11) << showpoint << elemental->mass << "\t" << elemental->name << "\t" << elemental->symbol <<endl;
     557    *file << "Ion_Type" << counter++ << "\t" << iter->second << "\t" << elemental->getAtomicNumber() << "\t1.0\t3\t3\t" << fixed << setprecision(11) << showpoint << elemental->getMass() << "\t" << elemental->getName() << "\t" << elemental->getSymbol() <<endl;
    543558  }
    544559}
     
    556571  int nr = 0;
    557572  for (vector<atom *>::iterator AtomRunner = allatoms.begin();AtomRunner != allatoms.end();++AtomRunner) {
    558     Inserter = ZtoCountMap.insert( pair<int, int>((*AtomRunner)->getType()->Z, 1) );
     573    Inserter = ZtoCountMap.insert( pair<int, int>((*AtomRunner)->getType()->getAtomicNumber(), 1) );
    559574    if (!Inserter.second)
    560575      Inserter.first->second += 1;
    561     const int Z = (*AtomRunner)->getType()->Z;
     576    const int Z = (*AtomRunner)->getType()->getAtomicNumber();
    562577    *file << "Ion_Type" << ZtoIndexMap[Z] << "_" << ZtoCountMap[Z] << "\t"  << fixed << setprecision(9) << showpoint;
    563578    *file << (*AtomRunner)->at(0) << "\t" << (*AtomRunner)->at(1) << "\t" << (*AtomRunner)->at(2);
Note: See TracChangeset for help on using the changeset viewer.