- Fix parallel loop over cells in compute_global_error.
- Change tests to trigger bug that is now fixed.
// check that off-processor entries are zero. Otherwise we will compute
// wrong results below!
typename InVector::size_type i = 0;
- typename Triangulation<dim,spacedim>::cell_iterator it = tria.begin_active();
+ typename Triangulation<dim,spacedim>::active_cell_iterator it = tria.begin_active();
for (; i<cellwise_error.size(); ++i, ++it)
if (!it->is_locally_owned())
Assert(std::fabs(cellwise_error[i]) < 1e-20,
{
double local = 0;
typename InVector::size_type i;
- typename Triangulation<dim,spacedim>::cell_iterator it = tria.begin_active();
+ typename Triangulation<dim,spacedim>::active_cell_iterator it = tria.begin_active();
for (i = 0; i<cellwise_error.size(); ++i, ++it)
if (it->is_locally_owned())
local += std::pow(cellwise_error[i], exponent);
parallel::distributed::Triangulation<dim> tr(MPI_COMM_WORLD);
GridGenerator::hyper_cube(tr);
- tr.refine_global (2);
+ tr.refine_global (3);
const FE_Q<dim> fe(2);
DoFHandler<dim> dofh(tr);
{
parallel::distributed::Triangulation<dim> tria(MPI_COMM_WORLD);
GridGenerator::hyper_cube(tria);
- tria.refine_global(2);
+ tria.refine_global(3);
FESystem<dim> fe(FE_Q<dim>(4),dim);
DoFHandler<dim> dofh(tria);
DEAL:0::Hdiv_seminorm:
-DEAL:0::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:0::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:0::L2_norm:
-DEAL:0::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:0::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:0::H1_seminorm:
-DEAL:0::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:0::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:0::H1_norm:
-DEAL:0::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:0::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:0::L1_norm:
-DEAL:0::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:0::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:0::Linfty_norm:
DEAL:0::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:0::mean:
-DEAL:0::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:0::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:0::Lp_norm:
-DEAL:0::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:0::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:0::W1p_seminorm:
-DEAL:0::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:0::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:0::OK
DEAL:0::Hdiv_seminorm:
-DEAL:0::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:0::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:0::L2_norm:
-DEAL:0::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:0::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:0::H1_seminorm:
-DEAL:0::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:0::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:0::H1_norm:
-DEAL:0::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:0::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:0::L1_norm:
-DEAL:0::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:0::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:0::Linfty_norm:
DEAL:0::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:0::mean:
-DEAL:0::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:0::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:0::Lp_norm:
-DEAL:0::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:0::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:0::W1p_seminorm:
-DEAL:0::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:0::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:0::OK
DEAL:1::Hdiv_seminorm:
-DEAL:1::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:1::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:1::L2_norm:
-DEAL:1::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:1::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:1::H1_seminorm:
-DEAL:1::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:1::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:1::H1_norm:
-DEAL:1::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:1::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:1::L1_norm:
-DEAL:1::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:1::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:1::Linfty_norm:
DEAL:1::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:1::mean:
-DEAL:1::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:1::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:1::Lp_norm:
-DEAL:1::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:1::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:1::W1p_seminorm:
-DEAL:1::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:1::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:1::OK
DEAL:2::Hdiv_seminorm:
-DEAL:2::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:2::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:2::L2_norm:
-DEAL:2::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:2::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:2::H1_seminorm:
-DEAL:2::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:2::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:2::H1_norm:
-DEAL:2::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:2::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:2::L1_norm:
-DEAL:2::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:2::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:2::Linfty_norm:
DEAL:2::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:2::mean:
-DEAL:2::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:2::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:2::Lp_norm:
-DEAL:2::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:2::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:2::W1p_seminorm:
-DEAL:2::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:2::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:2::OK
{
parallel::shared::Triangulation<dim> tria(MPI_COMM_WORLD);
GridGenerator::hyper_cube(tria);
- tria.refine_global(2);
+ tria.refine_global(3);
FESystem<dim> fe(FE_Q<dim>(4),dim);
DoFHandler<dim> dofh(tria);
DEAL:0::Hdiv_seminorm:
-DEAL:0::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:0::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:0::L2_norm:
-DEAL:0::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:0::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:0::H1_seminorm:
-DEAL:0::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:0::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:0::H1_norm:
-DEAL:0::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:0::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:0::L1_norm:
-DEAL:0::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:0::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:0::Linfty_norm:
DEAL:0::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:0::mean:
-DEAL:0::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:0::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:0::Lp_norm:
-DEAL:0::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:0::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:0::W1p_seminorm:
-DEAL:0::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:0::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:0::OK
DEAL:0::Hdiv_seminorm:
-DEAL:0::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:0::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:0::L2_norm:
-DEAL:0::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:0::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:0::H1_seminorm:
-DEAL:0::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:0::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:0::H1_norm:
-DEAL:0::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:0::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:0::L1_norm:
-DEAL:0::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:0::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:0::Linfty_norm:
DEAL:0::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:0::mean:
-DEAL:0::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:0::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:0::Lp_norm:
-DEAL:0::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:0::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:0::W1p_seminorm:
-DEAL:0::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:0::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:0::OK
DEAL:1::Hdiv_seminorm:
-DEAL:1::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:1::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:1::L2_norm:
-DEAL:1::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:1::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:1::H1_seminorm:
-DEAL:1::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:1::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:1::H1_norm:
-DEAL:1::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:1::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:1::L1_norm:
-DEAL:1::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:1::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:1::Linfty_norm:
DEAL:1::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:1::mean:
-DEAL:1::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:1::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:1::Lp_norm:
-DEAL:1::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:1::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:1::W1p_seminorm:
-DEAL:1::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:1::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:1::OK
DEAL:2::Hdiv_seminorm:
-DEAL:2::computed: 3.05532 expected: 3.05505 difference: 0.000272760
+DEAL:2::computed: 3.05512 expected: 3.05505 difference: 6.81923e-05
DEAL:2::L2_norm:
-DEAL:2::computed: 1.95470 expected: 1.95363 difference: 0.00106613
+DEAL:2::computed: 1.95390 expected: 1.95363 difference: 0.000266581
DEAL:2::H1_seminorm:
-DEAL:2::computed: 2.70878 expected: 2.70801 difference: 0.000769213
+DEAL:2::computed: 2.70821 expected: 2.70801 difference: 0.000192324
DEAL:2::H1_norm:
-DEAL:2::computed: 3.34041 expected: 3.33916 difference: 0.00124760
+DEAL:2::computed: 3.33947 expected: 3.33916 difference: 0.000311941
DEAL:2::L1_norm:
-DEAL:2::computed: 2.91750 expected: 2.91667 difference: 0.000833333
+DEAL:2::computed: 2.91688 expected: 2.91667 difference: 0.000208333
DEAL:2::Linfty_norm:
DEAL:2::computed: 3.00000 expected: 3.00000 difference: 0.00000
DEAL:2::mean:
-DEAL:2::computed: -2.91750 expected: -2.91667 difference: 0.000833333
+DEAL:2::computed: -2.91688 expected: -2.91667 difference: 0.000208333
DEAL:2::Lp_norm:
-DEAL:2::computed: 1.80970 expected: 1.80849 difference: 0.00121796
+DEAL:2::computed: 1.80879 expected: 1.80849 difference: 0.000304641
DEAL:2::W1p_seminorm:
-DEAL:2::computed: 2.31644 expected: 2.31560 difference: 0.000840093
+DEAL:2::computed: 2.31582 expected: 2.31560 difference: 0.000216381
DEAL:2::OK