define params in creator as init is called after modify

This commit is contained in:
alxvov 2019-08-21 14:02:34 +00:00
parent f4e3186abf
commit c71e869a33
1 changed files with 4 additions and 4 deletions

View File

@ -41,15 +41,15 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
MinSpin::MinSpin(LAMMPS *lmp) : Min(lmp) {}
MinSpin::MinSpin(LAMMPS *lmp) : Min(lmp) {
alpha_damp = 1.0;
discrete_factor = 10.0;
}
/* ---------------------------------------------------------------------- */
void MinSpin::init()
{
alpha_damp = 1.0;
discrete_factor = 10.0;
Min::init();
dts = dt = update->dt;