use explicit type cast

This commit is contained in:
Axel Kohlmeyer
2025-06-27 22:20:41 -04:00
parent d2d613c8b4
commit 5cecfb5c4d

View File

@ -195,7 +195,7 @@ GranSubModDampingMDR::GranSubModDampingMDR(GranularModel *gm, LAMMPS *lmp) :
void GranSubModDampingMDR::coeffs_to_local()
{
damp_type = coeffs[0]; // damping type 1 = mdr stiffness or 2 = velocity
damp_type = (int)coeffs[0]; // damping type 1 = mdr stiffness or 2 = velocity
if (damp_type != 1 && damp_type != 2)
error->all(FLERR, "Illegal MDR damping model, damping type must an integer equal to 1 or 2");
}