message: Converting an ERROR message into a slightly more descriptive WARNING with a default option
diff: @@ -1379,10 +1379,24 @@ NURBSExtension::NURBSExtension(NURBSExtension *parent, int newOrder)
  knotVectors.SetSize(NumOfKnotVectors);
  const Array<int> &pOrders = parent->GetOrders();
  for (int i = 0; i < NumOfKnotVectors; i++)
  + {
  + if (newOrder > pOrders[i])
  {
  knotVectors[i] =
  parent->GetKnotVector(i)->DegreeElevate(newOrder - pOrders[i]);
  }
  + else
  + {
  + if (newOrder < pOrders[i])
  + {
  + MFEM_WARNING("Discarding requested order.\n Parent KnotVector order higher than child.\n"
  + <<"KnotVector = " << i<<"\n"
  + <<"Child order = " << newOrder<<"\n"
  + <<"Parent order = " << pOrders[i]);
  + }
  + knotVectors[i] = new KnotVector(*parent->GetKnotVector(i));
  + }
  + }
  // copy some data from parent
  NumOfElements = parent->NumOfElements;
  @@ -1421,11 +1435,26 @@ NURBSExtension::NURBSExtension(NURBSExtension *parent,
  MFEM_VERIFY(mOrders.Size() == NumOfKnotVectors, "invalid newOrders array");
  knotVectors.SetSize(NumOfKnotVectors);
  const Array<int> &pOrders = parent->GetOrders();
  +
  for (int i = 0; i < NumOfKnotVectors; i++)
  + {
  + if (mOrders[i] > pOrders[i])
  {
  knotVectors[i] =
  parent->GetKnotVector(i)->DegreeElevate(mOrders[i] - pOrders[i]);
  }
  + else
  + {
  + if (mOrders[i] < pOrders[i])
  + {
  + MFEM_WARNING("Discarding requested order.\n Parent KnotVector order higher than child.\n"
  + <<"KnotVector = " << i<<"\n"
  + <<"Child order = " << mOrders[i]<<"\n"
  + <<"Parent order = " << pOrders[i]);
  + }
  + knotVectors[i] = new KnotVector(*parent->GetKnotVector(i));
  + }
  + }
  // copy some data from parent
  NumOfElements = parent->NumOfElements;
  