Ignore:
Timestamp:
Oct 2, 2016, 2:03:57 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Fix_FitPotential_needs_atomicnumbers
Children:
be20db
Parents:
6ffdf2
Message:

FIX: TrainingData used charges instead of atomic numbers to recognize fragments.

  • this only works if we do not DoSampleValenceOnly. Otherwise charges are no longer directly associable with the atomic number of the nuclei.
  • Extractors::gatherAllSymmetricDistanceArguments now needs atomicnumbers instead of charges.
  • TESTFIX: needed to adapt ExtractorsUnitTest.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/Extractors.hpp

    r6ffdf2 rc93e58  
    6969   *
    7070   * \param positions all nuclei positions
    71    * \param charges all nuclei charges
     71   * \param atomicNumber all nuclei atomic numbers
    7272   * \param globalid index to associated in argument_t with
    7373   * \return vector of argument_ , each with a distance
     
    7676  gatherAllSymmetricDistanceArguments(
    7777      const Fragment::positions_t& positions,
    78       const Fragment::charges_t& charges,
     78      const Fragment::atomicnumbers_t& atomicnumbers,
    7979      const size_t globalid);
    8080
     
    8383   *
    8484   * \param positions all nuclei positions
    85    * \param charges all nuclei charges
     85   * \param atomicNumber all nuclei atomic numbers
    8686   * \param index index refers to the index within the global set of configurations
    8787   * \return vector of of argument_t containing all found distances
     
    8989  inline FunctionModel::arguments_t gatherAllSymmetricDistances(
    9090      const Fragment::positions_t& positions,
    91       const Fragment::charges_t& charges,
     91      const Fragment::atomicnumbers_t& atomicnumbers,
    9292      const size_t index
    9393      ) {
    9494    // get distance out of Fragment
    95     return gatherAllSymmetricDistanceArguments(positions, charges, index);
     95    return gatherAllSymmetricDistanceArguments(positions, atomicnumbers, index);
    9696  }
    9797
Note: See TracChangeset for help on using the changeset viewer.