Re: [deal.II] Re: Proper use of CompositionManifold

```For future reference, if you are in doubt on how to use a single
class/function, you can skim through the directory tests, i.e., ```
```
tests/manifold/composition_manifold_*

would have shown to you an example which is identical to what you are trying to
achieve, and in general it contains very simple pieces of codes that run very
simple tests and show how to use almost every single class/function of the
deal.II library.

documentation. ;)

If you think there are things that should be changed in the documentation to
make the CompositionManifold class clearer (a very young class indeed), please
feel free to make a pull request. We’d be happy to include your comments in the
library!

Luca.

> On 22 Sep 2016, at 7:00, Praveen C <cprav...@gmail.com> wrote:
>
> I was making a mistake. Reading the code of CompositionManifold clarified it.
> This is correct
>
>       static const PolarManifold<2,3> sphere;
>       static const FunctionManifold<3,3,3> rotate("x;-z;y","x;z;-y");
>       static const CompositionManifold<2,3,3,3,2,3> rotated_sphere(sphere,
> rotate);
>
> Thanks
> praveen
>
> On Thu, Sep 22, 2016 at 10:03 AM, Praveen C <cprav...@gmail.com> wrote:
> Hello
>
> I think I understand this better after reading the code. Here is my attempt
>
>       static const PolarManifold<2,3> sphere;
>       static const FunctionManifold<3,3,3> rotate("x,-z,y","x,z,-y");
>       static CompositionManifold<2,3,2,3,3,3> surface(sphere, rotate);
>
> I use
>
> dim=2 The dimension of the resulting ChartManifold
> spacedim=3    The space dimension of the resulting ChartManifold
> chartdim=2    The chart dimension of the resulting ChartManifold
> intermediate_dim=3    The space dimension of the first ChartManifold
> dim1=3        The dimension of the first ChartManifold, which coincides also
> with the chart dimension of the second ChartManifold
> dim2=3        The dimension of the second ChartManifold
>
> This gives following error
>
> /Users/praveen/Applications/dgswm/src/swm.cc:279:47: error: no matching
>       constructor for initialization of 'CompositionManifold<2, 3, 2, 3, 3,
> 3>'
>       static CompositionManifold<2,3,2,3,3,3> surface(sphere, rotate);
>                                               ^       ~~~~~~~~~~~~~~
> /Users/praveen/Applications/deal.II/git/install/include/deal.II/grid/composition_manifold.h:75:3:
>  note:
>       candidate constructor not viable: no known conversion from 'const
>       PolarManifold<2, 3>' to 'const ChartManifold<3, 3, 2>' for 1st argument
>   CompositionManifold(const ChartManifold<dim1, intermediate_dim, chartdim>
> &F,
>   ^
> /Users/praveen/Applications/deal.II/git/install/include/deal.II/grid/composition_manifold.h:68:7:
>  note:
>       candidate constructor (the implicit copy constructor) not viable:
> requires
>       1 argument, but 2 were provided
> class CompositionManifold : public ChartManifold<dim, spacedim, chartdim>
>       ^
> /Users/praveen/Applications/deal.II/git/install/include/deal.II/grid/composition_manifold.h:68:7:
>  note:
>       candidate constructor (the implicit move constructor) not viable:
> requires
>       1 argument, but 2 were provided
>
> Thanks
> praveen
>
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> ---
> 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
> For more options, visit https://groups.google.com/d/optout.

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see