message: Fixed checks in FiniteElementSpace::Update related to orders_changed.
diff: @@ -2787,7 +2787,9 @@ void FiniteElementSpace::UpdateElementOrders()
  void FiniteElementSpace::Update(bool want_transform)
  {
  - if (mesh->GetSequence() == sequence && !orders_changed)
  + if (!orders_changed)
  + {
  + if (mesh->GetSequence() == sequence)
  {
  return; // mesh and space are in sync, no-op
  }
  @@ -2796,12 +2798,16 @@ void FiniteElementSpace::Update(bool want_transform)
  MFEM_ABORT("Error in update sequence. Space needs to be updated after "
  "each mesh modification.");
  }
  - if (mesh->GetSequence() != sequence && orders_changed)
  + }
  + else
  + {
  + if (mesh->GetSequence() != sequence)
  {
  MFEM_ABORT("Updating space after both mesh changes and element order "
  "changes is not supported. Please update separately after "
  "each change.");
  }
  + }
  if (NURBSext)
  {
  @@ -2812,6 +2818,7 @@ void FiniteElementSpace::Update(bool want_transform)
  Table* old_elem_dof = NULL;
  int old_ndofs;
  + bool old_orders_changed = orders_changed;
  // save old DOF table
  if (want_transform)
  @@ -2833,7 +2840,7 @@ void FiniteElementSpace::Update(bool want_transform)
  if (want_transform)
  {
  - MFEM_VERIFY(!orders_changed, "Interpolation for element order change "
  + MFEM_VERIFY(!old_orders_changed, "Interpolation for element order change "
  "is not implemented yet, sorry.");
  // calculate appropriate GridFunction transformation
  