Tutorial 40 , error: use of deleted function

31 views
Skip to first unread message

ztdep...@gmail.com

unread,
Nov 7, 2022, 9:51:17 AM11/7/22
to deal.II User Group
when i compile the tutorial 40, i met the following error. It semms that the function has been deleted. 

 error: use of deleted function ‘dealii::parallel::distributed::Triangulation<dim, spacedim>::Triangulation(const MPI_Comm&, typename dealii::Triangulation<dim, spacedim>::MeshSmoothing, dealii::parallel::distributed::Triangulation<dim, spacedim>::Settings) [with int dim = 2; int spacedim = 2; MPI_Comm = int; typename dealii::Triangulation<dim, spacedim>::MeshSmoothing = dealii::Triangulation<2, 2>::MeshSmoothing]’

Marco Feder

unread,
Nov 7, 2022, 11:07:15 AM11/7/22
to deal.II User Group
Hi,

the copy constructor for Triangulation is indeed deleted. If you do need a copy, you may want to use copy_triangulation(), that is also implemented for p::d::T.

Best,
Marco

Daniel Arndt

unread,
Nov 7, 2022, 11:53:10 AM11/7/22
to dea...@googlegroups.com
You would get this compile-time error if you haven't configured deal.II with `DEAL_II_WITH_MPI=ON`.

Best,
Daniel

On Mon, Nov 7, 2022 at 9:51 AM ztdep...@gmail.com <ztdep...@gmail.com> wrote:
when i compile the tutorial 40, i met the following error. It semms that the function has been deleted. 

 error: use of deleted function ‘dealii::parallel::distributed::Triangulation<dim, spacedim>::Triangulation(const MPI_Comm&, typename dealii::Triangulation<dim, spacedim>::MeshSmoothing, dealii::parallel::distributed::Triangulation<dim, spacedim>::Settings) [with int dim = 2; int spacedim = 2; MPI_Comm = int; typename dealii::Triangulation<dim, spacedim>::MeshSmoothing = dealii::Triangulation<2, 2>::MeshSmoothing]’

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/6682d965-46f7-4ca7-b3e6-a5a365e138ffn%40googlegroups.com.

Marco Feder

unread,
Nov 7, 2022, 12:00:17 PM11/7/22
to deal.II User Group
Ah, I hadn’t noticed you were compiling a tutorial program. My apologies.
Reply all
Reply to author
Forward
0 new messages