Changes in src/Parser/PcpParser.cpp [97b825:83f176]
- 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 1 8 /* 2 9 * PcpParser.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 20 #include "Helpers/MemDebug.hpp" 21 8 22 #include <iostream> 9 23 #include <iomanip> 10 24 25 //#include "Actions/FragmentationAction/SubgraphDissectionAction.hpp" 11 26 #include "atom.hpp" 12 27 #include "config.hpp" … … 349 364 // 4. dissect the molecule into connected subgraphs 350 365 // don't do this here ... 351 // MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this);366 //FragmentationSubgraphDissection(); 352 367 //delete(mol); 353 368 … … 490 505 PlaneWaveSpecifics.MaxPsiDouble = PlaneWaveSpecifics.PsiMaxNoDown = PlaneWaveSpecifics.PsiMaxNoUp = PlaneWaveSpecifics.PsiType = 0; 491 506 for (vector<atom *>::iterator runner = allatoms.begin(); runner != allatoms.end(); ++runner) { 492 PlaneWaveSpecifics.MaxPsiDouble += (*runner)->getType()-> NoValenceOrbitals;507 PlaneWaveSpecifics.MaxPsiDouble += (*runner)->getType()->getNoValenceOrbitals(); 493 508 } 494 509 cout << PlaneWaveSpecifics.MaxPsiDouble << endl; … … 525 540 // insert all found elements into the map 526 541 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)); 528 543 if (!Inserter.second) // increase if present 529 544 Inserter.first->second += 1; … … 540 555 const element * const elemental = World::getInstance().getPeriode()->FindElement(iter->first); 541 556 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; 543 558 } 544 559 } … … 556 571 int nr = 0; 557 572 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) ); 559 574 if (!Inserter.second) 560 575 Inserter.first->second += 1; 561 const int Z = (*AtomRunner)->getType()-> Z;576 const int Z = (*AtomRunner)->getType()->getAtomicNumber(); 562 577 *file << "Ion_Type" << ZtoIndexMap[Z] << "_" << ZtoCountMap[Z] << "\t" << fixed << setprecision(9) << showpoint; 563 578 *file << (*AtomRunner)->at(0) << "\t" << (*AtomRunner)->at(1) << "\t" << (*AtomRunner)->at(2);
Note:
See TracChangeset
for help on using the changeset viewer.