diff --git a/FECore/FEModel.cpp b/FECore/FEModel.cpp index 7aa3985ad..a24424890 100644 --- a/FECore/FEModel.cpp +++ b/FECore/FEModel.cpp @@ -1226,15 +1226,15 @@ bool FEModel::Solve() // solve the analaysis step bok = m_imp->m_pStep->Solve(); + // do callbacks + DoCallback(CB_STEP_SOLVED); + if (nstep + 1 == Steps()) { // set the solved flag m_imp->m_bsolved = bok; } - // do callbacks - DoCallback(CB_STEP_SOLVED); - // wrap it up m_imp->m_pStep->Deactivate();