diff --git a/src/GRANULAR/gran_sub_mod_rolling.cpp b/src/GRANULAR/gran_sub_mod_rolling.cpp index 674716f7df..33b01bb359 100644 --- a/src/GRANULAR/gran_sub_mod_rolling.cpp +++ b/src/GRANULAR/gran_sub_mod_rolling.cpp @@ -77,10 +77,11 @@ void GranSubModRollingSDS::calculate_forces() Frcrit = mu * gm->normal_model->get_fncrit(); + hist_temp[0] = gm->history[rhist0]; + hist_temp[1] = gm->history[rhist1]; + hist_temp[2] = gm->history[rhist2]; + if (gm->history_update) { - hist_temp[0] = gm->history[rhist0]; - hist_temp[1] = gm->history[rhist1]; - hist_temp[2] = gm->history[rhist2]; rolldotn = dot3(hist_temp, gm->nxuse); frameupdate = (fabs(rolldotn) * k) > (EPSILON * Frcrit);