Re: [deal.II] Compilation error: use of deleted function

2018-09-25 Thread Wolfgang Bangerth
On 09/25/2018 08:33 AM, Michał Wichrowski wrote: >   multigrids_sc_pointers[level] =  new Multigrid( >     mg_matrix_sc, >     mg_coarse_sc, > mg_transfer_sc, > mg_smoother_sc, > mg_smoother_sc); This won't compile. You'll have to write this as multigrids_sc_pointers[level] =

Re: [deal.II] Compilation error: use of deleted function

2018-09-25 Thread Daniel Arndt
Michal. > Ok, now I understand the idea. I do not need to copy a specific object, > just several Multigrid objects, so it should work. > If I understand correctly, I should do something like this: > std::vector > > > multigrids_sc_pointers(triangulation.n_global_levels()); > for

Re: [deal.II] Compilation error: use of deleted function

2018-09-25 Thread Michał Wichrowski
> > On 09/25/2018 07:38 AM, Michał Wichrowski wrote: > > > > > > Yes, I need triangulation.n_global_levels() copies of multigrid. I > modify each > > of them in next line: > > > >std::vector > > > multigrids_sc(triangulation.n_global_levels(), > >mg_sc); > >for (unsigned

Re: [deal.II] Compilation error: use of deleted function

2018-09-25 Thread Wolfgang Bangerth
On 09/25/2018 07:38 AM, Michał Wichrowski wrote: > > > Yes, I need triangulation.n_global_levels() copies of multigrid. I modify > each > of them in next line: > >   std::vector > > multigrids_sc(triangulation.n_global_levels(), >   mg_sc); >   for (unsigned int level = 0; level ++level)

Re: [deal.II] Compilation error: use of deleted function

2018-09-25 Thread Michał Wichrowski
W dniu wtorek, 25 września 2018 15:30:06 UTC+2 użytkownik Wolfgang Bangerth napisał: > > On 09/25/2018 05:56 AM, Michał Wichrowski wrote: > > > > Yep, I am trying to copy Multigrid object on purpose, I found the line > > corresponding to the problem: > > Line 762: > >std::vector >

Re: [deal.II] Compilation error: use of deleted function

2018-09-25 Thread Wolfgang Bangerth
On 09/25/2018 05:56 AM, Michał Wichrowski wrote: > > Yep, I am trying to copy Multigrid object on purpose, I found the line > corresponding to the  problem: > Line 762: >   std::vector > > multigrids_sc(triangulation.n_global_levels(), >   mg_sc); > >  I need a vector of objects of type

Re: [deal.II] Compilation error: use of deleted function

2018-09-25 Thread Michał Wichrowski
> > Michal, > the error is in your code, but since I don't have it, I can't tell > where. I suspect that you are trying to copy an object of type > Multigrid, in StokeMatrixFree/StokesMatrixFree.cc:34 of your project. > This copy may happen implicitly if you call a function that takes a >

Re: [deal.II] Compilation error: use of deleted function

2018-09-21 Thread Wolfgang Bangerth
On 09/21/2018 05:22 AM, Michał Wichrowski wrote: > Dear all, > > I have errors when compiling my code with the devellpment version of > deal.II .  The same problems occurs also with 9.0.0, the code works well > with 9.0.0-pre. I  have no idea how to resolve these problems. > > Michał > >