glotzerlab / hoomd-blue

Molecular dynamics and Monte Carlo soft matter simulation on GPUs.
http://glotzerlab.engin.umich.edu/hoomd-blue
BSD 3-Clause "New" or "Revised" License
324 stars 127 forks source link

Refactor common HPMC pair potential features into a base class #1835

Open joaander opened 3 weeks ago

joaander commented 3 weeks ago

Description

This includes

Motivation and context

  1. Improve performance by pre-computing constants.
  2. Reduce code duplication when we implement new pair potentials in HPMC.