issp-center-dev / abICS

ab-Initio Configuration Sampling tool kit (abICS)
https://www.pasums.issp.u-tokyo.ac.jp/abics/en
GNU General Public License v3.0
15 stars 8 forks source link

introduce factory for solvers #54

Closed aoymt closed 1 year ago

aoymt commented 1 year ago

a factory feature is introduced to solver choices. a solver instance is created by passing solver type and parameters to create() method of the solver base class. solver subclasses can be added without modifying every if-else nest where solvers are used.