Ignore:
Timestamp:
Nov 4, 2016, 9:37:50 AM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, 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_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
d5ca1a
Parents:
c7aac9
git-author:
Frederik Heber <heber@…> (10/03/16 10:35:00)
git-committer:
Frederik Heber <heber@…> (11/04/16 09:37:50)
Message:

ParticleType_t is now an unsigned int.

  • this allows direct use of atomicNumber_t and also signed integers dont' make much sense for a particle type, i.e. an id.
Location:
src/FunctionApproximation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/Extractors.cpp

    rc7aac9 rc5e75f3  
    9696Extractors::elementcounts_t
    9797Extractors::_detail::getElementCounts(
    98     const Fragment::charges_t elements
     98    const Fragment::atomicnumbers_t elements
    9999  )
    100100{
    101101  elementcounts_t elementcounts;
    102   for (Fragment::charges_t::const_iterator elementiter = elements.begin();
     102  for (Fragment::atomicnumbers_t::const_iterator elementiter = elements.begin();
    103103      elementiter != elements.end(); ++elementiter) {
    104104    // insert new element
  • src/FunctionApproximation/Extractors.hpp

    rc7aac9 rc5e75f3  
    3939
    4040  typedef size_t count_t;
    41   typedef Fragment::charge_t element_t;
     41  typedef Fragment::atomicNumber_t element_t;
    4242  typedef std::map< element_t, count_t> elementcounts_t;
    4343  typedef std::map< element_t, chargeiters_t > elementtargets_t;
    4444  typedef std::vector< chargeiters_t > targets_per_combination_t;
    4545  //!> typedef for particle designation
    46   typedef int ParticleType_t;
     46  typedef unsigned int ParticleType_t;
    4747  //!> typedef for a vector of particle designations
    4848  typedef std::vector<ParticleType_t> ParticleTypes_t;
     
    5959     */
    6060    elementcounts_t getElementCounts(
    61         const Fragment::charges_t elements
     61        const Fragment::atomicnumbers_t elements
    6262        );
    6363
  • src/FunctionApproximation/FunctionArgument.hpp

    rc7aac9 rc5e75f3  
    3333  typedef std::pair<size_t, size_t> indices_t;
    3434  //!> typedef for the underlying type of the particle
    35   typedef int ParticleType_t;
     35  typedef unsigned int ParticleType_t;
    3636  //!> typedef for the two particle types of the argument
    3737  typedef std::pair<ParticleType_t, ParticleType_t> types_t;
Note: See TracChangeset for help on using the changeset viewer.