]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update a test
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 6 Aug 2021 18:01:29 +0000 (20:01 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 6 Aug 2021 18:26:08 +0000 (20:26 +0200)
tests/simplex/step-74.cc

index 815c18aa387eb95c5f447c7b8a22c571e3cedac9..f693324d9e40b98b5cfd6fce512db5e4b72dc8d7 100644 (file)
@@ -395,6 +395,9 @@ namespace Step74
                                      auto &              copy_data) {
       const FEFaceValuesBase<dim> &fe_fv = scratch_data.reinit(cell, face_no);
 
+      Assert(fe_fv.get_cell() == cell, ExcInternalError());
+      Assert(fe_fv.get_face_number() == face_no, ExcInternalError());
+
       const auto &       q_points      = scratch_data.get_quadrature_points();
       const unsigned int n_q_points    = q_points.size();
       const unsigned int dofs_per_cell = fe_fv.dofs_per_cell;
@@ -458,6 +461,11 @@ namespace Step74
       const FEInterfaceValues<dim> &fe_iv =
         scratch_data.reinit(cell, f, sf, ncell, nf, nsf);
 
+      Assert(fe_iv.get_cell(0) == cell, ExcInternalError());
+      Assert(fe_iv.get_face_number(0) == f, ExcInternalError());
+      Assert(fe_iv.get_cell(1) == ncell, ExcInternalError());
+      Assert(fe_iv.get_face_number(1) == nf, ExcInternalError());
+
       copy_data.face_data.emplace_back();
       CopyDataFace &     copy_data_face = copy_data.face_data.back();
       const unsigned int n_dofs_face    = fe_iv.n_current_interface_dofs();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.