message: Fix "test_linear_fes" unit test since mesh finalization is now strictly required by the FiniteElementSpace.
diff: @@ -192,6 +192,8 @@ TEST_CASE("Point mesh with linear grid function",
  int idx[1] = {0};
  mesh.AddElement(new mfem::Point(idx, attrib));
  + mesh.FinalizeMesh();
  +
  REQUIRE( mesh.GetNV() == nv);
  REQUIRE( mesh.GetNE() == ne);
  REQUIRE( mesh.Dimension() == dim);
  @@ -234,6 +236,8 @@ TEST_CASE("Segment mesh with linear grid function",
  int idx[2] = {0,1};
  mesh.AddElement(new Segment(idx, attrib));
  + mesh.FinalizeMesh();
  +
  REQUIRE( mesh.GetNV() == nv);
  REQUIRE( mesh.GetNE() == ne);
  REQUIRE( mesh.Dimension() == dim);
  @@ -276,6 +280,8 @@ TEST_CASE("Triangle mesh with linear grid function",
  int idx[3] = {0,1,2};
  mesh.AddElement(new Triangle(idx, attrib));
  + mesh.FinalizeMesh();
  +
  REQUIRE( mesh.GetNV() == nv);
  REQUIRE( mesh.GetNE() == ne);
  REQUIRE( mesh.Dimension() == dim);
  @@ -319,6 +325,8 @@ TEST_CASE("Quad mesh with linear grid function",
  int idx[4] = {0,1,2,3};
  mesh.AddElement(new Quadrilateral(idx, attrib));
  + mesh.FinalizeMesh();
  +
  REQUIRE( mesh.GetNV() == nv);
  REQUIRE( mesh.GetNE() == ne);
  REQUIRE( mesh.Dimension() == dim);
  @@ -364,6 +372,8 @@ TEST_CASE("Tet mesh with linear grid function",
  int idx[4] = {0,1,2,3};
  mesh.AddElement(new Tetrahedron(idx, attrib));
  + mesh.FinalizeMesh();
  +
  REQUIRE( mesh.GetNV() == nv);
  REQUIRE( mesh.GetNE() == ne);
  REQUIRE( mesh.Dimension() == dim);
  @@ -412,6 +422,8 @@ TEST_CASE("Hex mesh with linear grid function",
  int idx[8] = {0,1,2,3,4,5,6,7};
  mesh.AddElement(new Hexahedron(idx, attrib));
  + mesh.FinalizeMesh();
  +
  REQUIRE( mesh.GetNV() == nv);
  REQUIRE( mesh.GetNE() == ne);
  REQUIRE( mesh.Dimension() == dim);
  