message: Using GridFunction::CurlDim in CurlGridFunctionCoefficient
diff: @@ -218,15 +218,7 @@ CurlGridFunctionCoefficient::CurlGridFunctionCoefficient(
  void CurlGridFunctionCoefficient::SetGridFunction(const GridFunction *gf)
  {
  - if (gf)
  - {
  - int sdim = gf -> FESpace() -> GetMesh() -> SpaceDimension();
  - MFEM_VERIFY(sdim == 2 || sdim == 3,
  - "CurlGridFunctionCoefficient "
  - "only defind for spaces of dimension 2 or 3.");
  - }
  - GridFunc = gf;
  - vdim = (gf) ? (2 * gf -> FESpace() -> GetMesh() -> SpaceDimension() - 3) : 0;
  + GridFunc = gf; vdim = (gf) ? gf -> CurlDim() : 0;
  }
  void CurlGridFunctionCoefficient::Eval(Vector &V, ElementTransformation &T,
  