Changeset 305e7e for src


Ignore:
Timestamp:
Apr 18, 2011, 12:45:06 PM (14 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:
4fdc65
Parents:
4217e7
git-author:
Frederik Heber <heber@…> (04/18/11 12:43:30)
git-committer:
Frederik Heber <heber@…> (04/18/11 12:45:06)
Message:

FIX: Type is actually spelled type with TREMOLO.

Location:
src/Parser
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TremoloAtomInfoContainer.cpp

    r4217e7 r305e7e  
    3232  imprData("-"),
    3333  GroupMeasureTypeNo("0"),
    34   Type("-"),
     34  type("-"),
    3535  extType("-"),
    3636  name("-"),
     
    6363      GroupMeasureTypeNo = value;
    6464      break;
    65     case TremoloKey::Type :
    66       Type = value;
     65    case TremoloKey::type :
     66      type = value;
    6767      break;
    6868    case TremoloKey::extType :
     
    121121    case TremoloKey::GroupMeasureTypeNo :
    122122      return GroupMeasureTypeNo;
    123     case TremoloKey::Type :
    124       return Type;
     123    case TremoloKey::type :
     124      return type;
    125125    case TremoloKey::extType :
    126126      return extType;
     
    161161  out << info.get(TremoloKey::imprData) << "\t";
    162162  out << info.get(TremoloKey::GroupMeasureTypeNo) << "\t";
    163   out << info.get(TremoloKey::Type) << "\t";
     163  out << info.get(TremoloKey::type) << "\t";
    164164  out << info.get(TremoloKey::extType) << "\t";
    165165  out << info.get(TremoloKey::name) << "\t";
  • src/Parser/TremoloAtomInfoContainer.hpp

    r4217e7 r305e7e  
    3232  std::string imprData;
    3333  std::string GroupMeasureTypeNo;
    34   std::string Type;
     34  std::string type;
    3535  std::string extType;
    3636  std::string name;
  • src/Parser/TremoloKey.hpp

    r4217e7 r305e7e  
    3030    imprData,
    3131    GroupMeasureTypeNo,
    32     Type,
     32    type,
    3333    extType,
    3434    name,
  • src/Parser/TremoloParser.cpp

    r4217e7 r305e7e  
    5454  knownKeys["imprData"] = TremoloKey::imprData;
    5555  knownKeys["GroupMeasureTypeNo"] = TremoloKey::GroupMeasureTypeNo;
    56   knownKeys["Type"] = TremoloKey::Type;
     56  knownKeys["type"] = TremoloKey::type;
    5757  knownKeys["extType"] = TremoloKey::extType;
    5858  knownKeys["name"] = TremoloKey::name;
     
    196196        *file << currentAtom->getAtomicVelocity()[2] << "\t";
    197197        break;
    198       case TremoloKey::Type :
     198      case TremoloKey::type :
    199199        if (additionalAtomData.count(currentAtom->getId())) {
    200200          if (additionalAtomData[currentAtom->getId()].get(currentField) != "-") {
     
    361361        newAtom->setAtomicVelocity(tempVector);
    362362        break;
    363       case TremoloKey::Type :
     363      case TremoloKey::type :
    364364      {
    365365        ASSERT(tok_iter != tokens.end(), "TremoloParser::readAtomDataLine() - no value for "+keyName+"!");
  • src/Parser/TremoloParser.hpp

    r4217e7 r305e7e  
    5353
    5454  /**
    55    * Map to associate the elements with stuff in "Type", e.g. OC2 -> O.
     55   * Map to associate the elements with stuff in "type", e.g. OC2 -> O.
    5656   */
    5757  std::map<std::string, std::string> knownTypes;
  • src/Parser/unittests/ParserTremoloUnitTest.cpp

    r4217e7 r305e7e  
    4646
    4747static string Tremolo_Atomdata1 = "\
    48 # ATOMDATA\tId\tname\tType\tx=3\n";
     48# ATOMDATA\tId\tname\ttype\tx=3\n";
    4949static string Tremolo_Atomdata2 = "\
    5050#\n\
    51 #ATOMDATA Id name Type x=3\n\
     51#ATOMDATA Id name type x=3\n\
    52521 hydrogen H 3.0 4.5 0.1\n\
    5353\n";
    5454static string Tremolo_invalidkey = "\
    5555#\n\
    56 #ATOMDATA Id name foo Type x=3\n\
     56#ATOMDATA Id name foo type x=3\n\
    5757\n\n";
    5858static string Tremolo_velocity = "\
    5959#\n\
    60 #ATOMDATA Id name Type u=3\n\
     60#ATOMDATA Id name type u=3\n\
    61611 hydrogen H 3.0 4.5 0.1\n\
    6262\n";
    6363static string Tremolo_neighbours = "#\n\
    64 #ATOMDATA Id Type neighbors=2\n\
     64#ATOMDATA Id type neighbors=2\n\
    65651 H 3 0\n\
    66662 H 3 0\n\
     
    6868static string Tremolo_improper = "\
    6969#\n\
    70 #ATOMDATA Id Type imprData\n\
     70#ATOMDATA Id type imprData\n\
    71718 H 9-10\n\
    72729 H 10-8,8-10\n\
     
    7474static string Tremolo_torsion = "\
    7575#\n\
    76 #ATOMDATA Id Type torsion\n\
     76#ATOMDATA Id type torsion\n\
    77778 H 9-10\n\
    78789 H 10-8,8-10\n\
    797910 O -\n";
    8080static string Tremolo_full = "\
    81 # ATOMDATA\tx=3\tu=3\tF\tstress\tId\tneighbors=5\timprData\tGroupMeasureTypeNo\tType\textType\tname\tresName\tchainID\tresSeq\toccupancy\ttempFactor\tsegID\tCharge\tcharge\tGrpTypeNo\ttorsion\n\
     81# ATOMDATA\tx=3\tu=3\tF\tstress\tId\tneighbors=5\timprData\tGroupMeasureTypeNo\ttype\textType\tname\tresName\tchainID\tresSeq\toccupancy\ttempFactor\tsegID\tCharge\tcharge\tGrpTypeNo\ttorsion\n\
    82820\t0\t0\t0\t0\t0\t0\t0\t1\t0\t0\t0\t0\t0\t-\t0\tH\t-\t-\t-\t0\t0\t0\t0\t0\t0\t0\t0\t-\t\n";
    8383
     
    214214    atom* newAtom = World::getInstance().createAtom();
    215215    newAtom->setType(1);
    216     testParser->setFieldsForSave("x=3 u=3 F stress Id neighbors=5 imprData GroupMeasureTypeNo Type extType name resName chainID resSeq occupancy tempFactor segID Charge charge GrpTypeNo torsion");
     216    testParser->setFieldsForSave("x=3 u=3 F stress Id neighbors=5 imprData GroupMeasureTypeNo type extType name resName chainID resSeq occupancy tempFactor segID Charge charge GrpTypeNo torsion");
    217217    std::vector<atom *> atoms = World::getInstance().getAllAtoms();
    218218    testParser->save(&output, atoms);
Note: See TracChangeset for help on using the changeset viewer.