Maxi

Furthermore I tested the transform-function, and got the following error:
> ~/heat_equation_with_pulse_propagation/heat_equation/source/main.cpp:1648:
> 26: error: no matching function for call to ‘transform(std::_Bind_helper<
> false, dealii::Point<2, double> (Step15::MinimalSurfaceProblem<2>::*)(
> dealii::Point<2, double>), const Step15::MinimalSurfaceProblem<2>*, const 
> std::_Placeholder<1>&>::type, const dealii::parallel::distributed::
> Triangulation<2, 2>&)’
>      GridTools::transform (std::bind(&Step15::MinimalSurfaceProblem<dim>::
> rescale_body_length, this, std::placeholders::_1), triangulation);
>      
> ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ~/heat_equation_with_pulse_propagation/heat_equation
> /source/main.cpp:37:0:
> /opt/dealii/include/deal.II/grid/grid_tools.h:2612:8: note: candidate: 
> template<int dim, class Transformation, int spacedim> void dealii::
> GridTools::transform(const Transformation&, dealii::Triangulation<dim, 
> spacedim2>&)
>    void transform (const Predicate    &predicate,
>         ^~~~~~~~~
> /opt/dealii/include/deal.II/grid/grid_tools.h:2612:8: note:   template 
> argument deduction/substitution failed:
> ~/heat_equation_with_pulse_propagation/heat_equation/source/main.cpp:1648:
> 26: note:   types ‘dealii::Triangulation<dim, spacedim2>’ and ‘const 
> dealii::parallel::distributed::Triangulation<2, 2>’ have incompatible cv-
> qualifiers
>      GridTools::transform (std::bind(&Step15::MinimalSurfaceProblem<dim>::
> rescale_body_length, this, std::placeholders::_1), triangulation);
>
> It appears you are trying to call GridTools::transform from a place where 
triangulation is const, e.g. in a const member function.

 

> According to the documentation I also should use "transform" not after 
> refining the mesh:
> A safe approach is to use this function prior to any refinement in 
> parallel, if that is possible, but not after you refine the mesh.
>
If you are calling 
void parallel::Triangulation< 1, spacedim 
>::communicate_locally_moved_vertices( 
<https://www.dealii.org/developer/doxygen/deal.II/classparallel_1_1distributed_1_1Triangulation_3_011_00_01spacedim_01_4.html#a6654e33ba281946895a7a6aa5adec231>
)
directly after that, you should be fine.

Best,
Daniel

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to