Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/PcpParser.cpp

    r765f16 r3bdb6d  
    2727#include "config.hpp"
    2828#include "ConfigFileBuffer.hpp"
    29 #include "element.hpp"
     29#include "Element/element.hpp"
    3030#include "CodePatterns/Assert.hpp"
    3131#include "CodePatterns/Log.hpp"
     
    3434#include "molecule.hpp"
    3535#include "PcpParser.hpp"
    36 #include "periodentafel.hpp"
     36#include "Element/periodentafel.hpp"
    3737#include "ThermoStatContainer.hpp"
    3838#include "World.hpp"
     
    4040
    4141
    42 // declare specialized static variables
    43 const std::string FormatParserTrait<pcp>::name = "pcp";
    44 const std::string FormatParserTrait<pcp>::suffix = "conf";
    45 const ParserTypes FormatParserTrait<pcp>::type = pcp;
    46 
    47 FormatParser< pcp >::StructParallelization::StructParallelization() :
     42PcpParser::StructParallelization::StructParallelization() :
    4843  ProcPEGamma(8),
    4944  ProcPEPsi(1)
    5045{}
    5146
    52 FormatParser< pcp >::StructParallelization::~StructParallelization()
    53 {}
    54 
    55 FormatParser< pcp >::StructPaths::StructPaths() :
     47PcpParser::StructParallelization::~StructParallelization()
     48{}
     49
     50PcpParser::StructPaths::StructPaths() :
    5651  databasepath(NULL),
    5752  configname(NULL),
     
    6156{}
    6257
    63 FormatParser< pcp >::StructPaths::~StructPaths()
    64 {}
    65 
    66 FormatParser< pcp >::StructSwitches::StructSwitches() :
     58PcpParser::StructPaths::~StructPaths()
     59{}
     60
     61PcpParser::StructSwitches::StructSwitches() :
    6762  DoConstrainedMD(0),
    6863  DoOutVis(0),
     
    7671{}
    7772
    78 FormatParser< pcp >::StructSwitches::~StructSwitches()
    79 {}
    80 
    81 FormatParser< pcp >::StructLocalizedOrbitals::StructLocalizedOrbitals() :
     73PcpParser::StructSwitches::~StructSwitches()
     74{}
     75
     76PcpParser::StructLocalizedOrbitals::StructLocalizedOrbitals() :
    8277  CommonWannier(0),
    8378  SawtoothStart(0.01),
     
    8984{}
    9085
    91 FormatParser< pcp >::StructLocalizedOrbitals::~StructLocalizedOrbitals()
    92 {}
    93 
    94 FormatParser< pcp >::StructStepCounts::StructStepCounts() :
     86PcpParser::StructLocalizedOrbitals::~StructLocalizedOrbitals()
     87{}
     88
     89PcpParser::StructStepCounts::StructStepCounts() :
    9590  MaxMinStopStep(1),
    9691  InitMaxMinStopStep(1),
     
    109104{}
    110105
    111 FormatParser< pcp >::StructStepCounts::~StructStepCounts()
    112 {}
    113 
    114 FormatParser< pcp >::StructPlaneWaveSpecifics::StructPlaneWaveSpecifics() :
     106PcpParser::StructStepCounts::~StructStepCounts()
     107{}
     108
     109PcpParser::StructPlaneWaveSpecifics::StructPlaneWaveSpecifics() :
    115110  PsiType(0),
    116111  MaxPsiDouble(0),
     
    128123{}
    129124
    130 FormatParser< pcp >::StructPlaneWaveSpecifics::~StructPlaneWaveSpecifics()
     125PcpParser::StructPlaneWaveSpecifics::~StructPlaneWaveSpecifics()
    131126{}
    132127
     
    134129 *
    135130 */
    136 FormatParser< pcp >::FormatParser() :
    137   FormatParser_common(NULL),
     131PcpParser::PcpParser() :
    138132  FastParsing(false),
    139133  Deltat(0.01),
     
    147141 *
    148142 */
    149 FormatParser< pcp >::~FormatParser()
    150 {}
    151 
    152 void FormatParser< pcp >::load(std::istream* file)
     143PcpParser::~PcpParser()
     144{}
     145
     146void PcpParser::load(std::istream* file)
    153147{
    154148  if (file->fail()) {
     
    386380 * \param atoms atoms to store
    387381 */
    388 void FormatParser< pcp >::save(std::ostream* file, const std::vector<atom *> &atoms)
     382void PcpParser::save(std::ostream* file, const std::vector<atom *> &atoms)
    389383{
    390384  DoLog(0) && (Log() << Verbose(0) << "Saving changes to pcp." << std::endl);
     
    420414    *file << "DoFullCurrent\t" << Switches.DoFullCurrent << "\t# Do full perturbation" << endl;
    421415    *file << "DoConstrainedMD\t" << Switches.DoConstrainedMD << "\t# Do perform a constrained (>0, relating to current MD step) instead of unconstrained (0) MD" << endl;
    422     ASSERT(Thermostats != NULL, "FormatParser< pcp >::save() - Thermostats not initialized!");
     416    ASSERT(Thermostats != NULL, "PcpParser::save() - Thermostats not initialized!");
    423417    *file << "Thermostat\t" << Thermostats->activeThermostat->name() << "\t";
    424418    *file << Thermostats->activeThermostat->writeParams();
     
    493487 * \param &allatoms all atoms to store away
    494488 */
    495 void FormatParser< pcp >::CalculateOrbitals(const std::vector<atom *> &allatoms)
     489void PcpParser::CalculateOrbitals(const std::vector<atom *> &allatoms)
    496490{
    497491  PlaneWaveSpecifics.MaxPsiDouble = PlaneWaveSpecifics.PsiMaxNoDown = PlaneWaveSpecifics.PsiMaxNoUp = PlaneWaveSpecifics.PsiType = 0;
     
    526520 * \param &ZtoIndexMap map of which atoms belong to which ion number
    527521 */
    528 void FormatParser< pcp >::OutputElements(ostream *file, const std::vector<atom *> &allatoms, map<int, int> &ZtoIndexMap)
     522void PcpParser::OutputElements(ostream *file, const std::vector<atom *> &allatoms, map<int, int> &ZtoIndexMap)
    529523{
    530524  map<int, int> PresentElements;
     
    556550 * \param &ZtoIndexMap map of which atoms belong to which ion number
    557551 */
    558 void FormatParser< pcp >::OutputAtoms(ostream *file, const std::vector<atom *> &allatoms, map<int, int> &ZtoIndexMap)
     552void PcpParser::OutputAtoms(ostream *file, const std::vector<atom *> &allatoms, map<int, int> &ZtoIndexMap)
    559553{
    560554  *file << "#Ion_TypeNr._Nr.R[0]    R[1]    R[2]    MoveType (0 MoveIon, 1 FixedIon)" << endl;
     
    604598 * \param *fb file buffer containing the config file
    605599 */
    606 void FormatParser< pcp >::ParseThermostats(class ConfigFileBuffer * const fb)
     600void PcpParser::ParseThermostats(class ConfigFileBuffer * const fb)
    607601{
    608602  char * const thermo = new char[12];
     
    621615};
    622616
    623 bool FormatParser< pcp >::operator==(const FormatParser< pcp >& b) const
     617bool PcpParser::operator==(const PcpParser& b) const
    624618{
    625619  ASSERT(Parallelization.ProcPEGamma == b.Parallelization.ProcPEGamma, "PcpParser ==: ProcPEGamma not");
Note: See TracChangeset for help on using the changeset viewer.