From: Marc Fehling Date: Mon, 21 Aug 2023 23:35:13 +0000 (-0600) Subject: Allow set_mesh_smoothing() on non-empty triangulations. X-Git-Tag: relicensing~561^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f8e73113c9cc450b12d0de1eb7205739ba181f9;p=dealii.git Allow set_mesh_smoothing() on non-empty triangulations. --- diff --git a/doc/news/changes/minor/20230822Fehling b/doc/news/changes/minor/20230822Fehling new file mode 100644 index 0000000000..68fe48e16a --- /dev/null +++ b/doc/news/changes/minor/20230822Fehling @@ -0,0 +1,4 @@ +Changed: You can now set MeshSmoothing flags in non-empty triangulations +with Triangulation::set_mesh_smoothing(). +
+(Marc Fehling, 2023/08/22) diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index 5dac93b8a2..548a120d85 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -1849,8 +1849,7 @@ public: /** * Set the mesh smoothing to @p mesh_smoothing. This overrides the - * MeshSmoothing given to the constructor. It is allowed to call this - * function only if the triangulation is empty. + * MeshSmoothing given to the constructor. */ virtual void set_mesh_smoothing(const MeshSmoothing mesh_smoothing); diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 83218e3631..4e1d7c0595 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -12259,8 +12259,6 @@ DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) void Triangulation::set_mesh_smoothing( const MeshSmoothing mesh_smoothing) { - Assert(n_levels() == 0, - ExcTriangulationNotEmpty(vertices.size(), levels.size())); smooth_grid = mesh_smoothing; }