Changeset 41a467 for src/Parser


Ignore:
Timestamp:
Nov 3, 2011, 7:44:01 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
ab26c3
Parents:
47d041
git-author:
Frederik Heber <heber@…> (10/27/11 15:08:36)
git-committer:
Frederik Heber <heber@…> (11/03/11 19:44:01)
Message:

LARGE: config class is now just a tiny container.

  • this was loooooobg overdue. Config.cpp contained remnants from parsing pcp files and much else. Also fragmentation depended on it. Since refactoring of MoleculeListClass and the fragmentation, we don't need it anymore.
  • helper functions ParseForParameters(), LoadMolecule() extracted into new module PcpParser_helper.
  • config class now just contains 4 variables that are generally required (especially IsAngstroem) and they should probably remain with the world.
  • removed some places where config.hpp was no unnecessarily included.
  • Moved ConfigFileBuffer.* over to subfolder src/Parser/ where it rather belongs (associated with PcpParser).
Location:
src/Parser
Files:
2 added
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Parser/Makefile.am

    r47d041 r41a467  
    55PARSERSOURCE = \
    66  Parser/ChangeTracker.cpp \
     7  Parser/ConfigFileBuffer.cpp \
    78  Parser/FormatParser_common.cpp \
    89  Parser/FormatParser_Parameters.cpp \
     
    1314  Parser/ParserTypes.cpp \
    1415  Parser/PcpParser.cpp \
     16  Parser/PcpParser_helper.cpp \
    1517  Parser/PdbAtomInfoContainer.cpp \
    1618  Parser/PdbParser.cpp \
     
    2325PARSERHEADER = \
    2426  Parser/ChangeTracker.hpp \
     27  Parser/ConfigFileBuffer.hpp \
    2528  Parser/FormatParser.hpp \
    2629  Parser/FormatParser_specializations_header.hpp \
     
    3740  Parser/ParserTypes.undef \
    3841  Parser/PcpParser.hpp \
     42  Parser/PcpParser_helper.hpp \
    3943  Parser/PdbAtomInfoContainer.hpp \
    4044  Parser/PdbKey.hpp \
  • TabularUnified src/Parser/MpqcParser.cpp

    r47d041 r41a467  
    2828
    2929#include "atom.hpp"
     30#include "CodePatterns/Log.hpp"
     31#include "CodePatterns/toString.hpp"
    3032#include "config.hpp"
    3133#include "Element/element.hpp"
     34#include "Element/periodentafel.hpp"
     35#include "LinearAlgebra/Vector.hpp"
    3236#include "molecule.hpp"
    3337#include "MoleculeListClass.hpp"
    34 #include "CodePatterns/Log.hpp"
    35 #include "CodePatterns/toString.hpp"
    36 #include "CodePatterns/Verbose.hpp"
    37 #include "LinearAlgebra/Vector.hpp"
    38 #include "Element/periodentafel.hpp"
    3938#include "World.hpp"
    4039
  • TabularUnified src/Parser/PcpParser.cpp

    r47d041 r41a467  
    2323#include <iomanip>
    2424
    25 //#include "Actions/FragmentationAction/SubgraphDissectionAction.hpp"
    2625#include "atom.hpp"
    27 #include "config.hpp"
    28 #include "ConfigFileBuffer.hpp"
    29 #include "Element/element.hpp"
     26#include "Box.hpp"
    3027#include "CodePatterns/Assert.hpp"
    3128#include "CodePatterns/Log.hpp"
    3229#include "CodePatterns/Verbose.hpp"
     30#include "Element/element.hpp"
     31#include "Element/periodentafel.hpp"
    3332#include "LinearAlgebra/RealSpaceMatrix.hpp"
    3433#include "molecule.hpp"
    3534#include "MoleculeListClass.hpp"
    3635#include "PcpParser.hpp"
    37 #include "Element/periodentafel.hpp"
     36#include "Parser/ConfigFileBuffer.hpp"
     37#include "Parser/PcpParser_helper.hpp"
    3838#include "ThermoStatContainer.hpp"
    3939#include "World.hpp"
    40 #include "Box.hpp"
    4140
    4241
  • TabularUnified src/Parser/Psi3Parser.cpp

    r47d041 r41a467  
    2828
    2929#include "atom.hpp"
    30 #include "config.hpp"
     30#include "CodePatterns/Log.hpp"
     31#include "CodePatterns/toString.hpp"
    3132#include "Element/element.hpp"
    3233#include "Element/periodentafel.hpp"
     34#include "LinearAlgebra/Vector.hpp"
    3335#include "molecule.hpp"
    3436#include "MoleculeListClass.hpp"
    35 #include "CodePatterns/Log.hpp"
    36 #include "CodePatterns/toString.hpp"
    37 #include "CodePatterns/Verbose.hpp"
    38 #include "LinearAlgebra/Vector.hpp"
    3937#include "World.hpp"
    4038
     
    6058{}
    6159
    62 /** Load an MPQC config file into the World.
     60/** Load an PSI3 config file into the World.
    6361 * \param *file input stream
    6462 */
     
    155153}
    156154
    157 /** Saves all atoms and data into a MPQC config file.
     155/** Saves all atoms and data into a PSI3 config file.
    158156 * \param *file output stream
    159157 * \param atoms atoms to store
Note: See TracChangeset for help on using the changeset viewer.