Skip to content

Commit

Permalink
Print also total number of cells
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrmrc committed Mar 18, 2024
1 parent af91895 commit ddac5df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/3D_piston.cc
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ DiffusionReactionProblem<dim>::make_fine_grid()
tria, comm);

tria_pft.create_triangulation(description);
pcout << "Total number of fine cells: " << tria_pft.n_global_active_cells()
<< std::endl;
}


Expand Down Expand Up @@ -849,8 +851,8 @@ DiffusionReactionProblem<dim>::solve()
cellwise_error,
VectorTools::NormType::H1_seminorm);

pcout << "L2 error (exponential solution): " << error << std::endl;
pcout << "Semi H1 error (exponential solution): " << semiH1error << std::endl;
pcout << "L2 error: " << error << std::endl;
pcout << "Semi H1 error: " << semiH1error << std::endl;
}


Expand Down

0 comments on commit ddac5df

Please sign in to comment.