Re: [deal.II] Re: project/ interpolate solution from adaptive mesh to uniform mesh

2022-04-15 Thread Giang Huynh
Thank Wolfgang for the support. It worked now. Giang On Fri, Apr 15, 2022 at 12:01 PM Wolfgang Bangerth wrote: > On 4/15/22 07:58, Giang Huynh wrote: > > --- > > error: no matching function for call to > ‘interpolate_to_different_mesh(const > > dealii::DoFHan

Re: [deal.II] Re: project/ interpolate solution from adaptive mesh to uniform mesh

2022-04-15 Thread Wolfgang Bangerth
On 4/15/22 07:58, Giang Huynh wrote: --- error: no matching function for call to ‘interpolate_to_different_mesh(const dealii::DoFHandler<2>&, const dealii::Vector&, const dealii::DoFHandler<2>&, const dealii::Vector&)’    VectorTools::interpolate_to_differen

[deal.II] Re: project/ interpolate solution from adaptive mesh to uniform mesh

2022-04-15 Thread Giang Huynh
Hi Sebastian, I tried to use interpolate_to_different_mesh(), but it causes an error below. How can I overcome this? Thanks, Giang --- error: no matching function for call to ‘interpolate_to_different_mesh(const dealii::DoFHandler<2>&, const dealii::Vector&,

[deal.II] Re: project/ interpolate solution from adaptive mesh to uniform mesh

2022-04-15 Thread SebG
Dear Giang, I think that the SolutionTransfer class could be used for this purpose if the Triangulation is coarsened. Moreover, the VectorTools namespace contains a variant of VectorToosl::interpolate using two DoFHandler objects and there is also VectorTools::interpolate_to_different_mesh. Be