Changeset 55c494 for src


Ignore:
Timestamp:
May 19, 2021, 7:06:29 PM (4 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
b3bd7d
Parents:
15fc6a
git-author:
Frederik Heber <frederik.heber@…> (05/14/21 09:52:02)
git-committer:
Frederik Heber <frederik.heber@…> (05/19/21 19:06:29)
Message:

Added GeneratePotentialsAction.

  • this generates all potential combinations for a given fragment.
  • exposed PotentialFactory::getDefaultInstance() for constant instance to be able to gather more information about the potential such as the binding model.
  • DOCU: Added documentation.
  • TEST: Added regression test case.
Location:
src
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/GlobalListOfActions.hpp

    r15fc6a r55c494  
    106106  (MoleculeVerletIntegration) \
    107107  (PotentialFitPartialCharges) \
     108  (PotentialGeneratePotentials) \
    108109  (PotentialParseAtomFragments) \
    109110  (PotentialParseHomologies) \
  • src/Actions/Makefile.am

    r15fc6a r55c494  
    427427POTENTIALACTIONSOURCE = \
    428428  Actions/PotentialAction/FitPartialChargesAction.cpp \
     429  Actions/PotentialAction/GeneratePotentialsAction.cpp \
    429430  Actions/PotentialAction/ParseAtomFragmentsAction.cpp \
    430431  Actions/PotentialAction/ParseHomologiesAction.cpp \
     
    437438POTENTIALACTIONHEADER = \
    438439  Actions/PotentialAction/FitPartialChargesAction.hpp \
     440  Actions/PotentialAction/GeneratePotentialsAction.hpp \
    439441  Actions/PotentialAction/ParseAtomFragmentsAction.hpp \
    440442  Actions/PotentialAction/ParseHomologiesAction.hpp \
     
    447449POTENTIALACTIONDEFS = \
    448450  Actions/PotentialAction/FitPartialChargesAction.def  \
     451  Actions/PotentialAction/GeneratePotentialsAction.def \
    449452  Actions/PotentialAction/ParseAtomFragmentsAction.def \
    450453  Actions/PotentialAction/ParseHomologiesAction.def \
  • src/Potentials/PotentialFactory.cpp

    r15fc6a r55c494  
    172172}
    173173
     174EmpiricalPotential const * const PotentialFactory::getDefaultPotential(const enum PotentialTypes &_type) const {
     175  return const_cast<EmpiricalPotential const * const>(getDefaultPotential(getNameForType(_type)));
     176}
     177
     178
    174179CONSTRUCT_SINGLETON(PotentialFactory)
  • src/Potentials/PotentialFactory.hpp

    r15fc6a r55c494  
    4444public:
    4545
     46  /** Returns a default potential to which only we have access.
     47   *
     48   */
     49  EmpiricalPotential const * const getDefaultPotential(const enum PotentialTypes &_type) const;
     50
     51
    4652  /** Creates an instance of the requested potential.
    4753   *
Note: See TracChangeset for help on using the changeset viewer.