[Dune] Creating a Grid
Oliver Sander
sander at mi.fu-berlin.de
Wed Jan 5 14:53:06 CET 2011
Hi Jö!
The method is indeed static, but you can still call it as if it belonged
to an object.
Oliver
Am 05.01.2011 14:44, schrieb Jö Fahlke:
> Am Wed, 5. Jan 2011, 12:59:24 +0100 schrieb Alex Evanovic:
>
>> I am able to create a grid of simplices with the UG Grid with the line,
>> *Dune::shared_ptr<GridType> grid = factory.createSimplexGrid(lowerLeft,
>> upperRight, elements);*
>>
>> How can I possibly create a grid of cubes with UG Grid?
>>
> I believe you're confusing the StructuredGridFactory and the GridFactory here:
> createSimplexGrid() is a _static_ member function of the
> StructuredGridFactory, but you call it as if it were a non-static member
> function of your "factory" object. You probably mean something like:
>
> Dune::shared_ptr<GridType> grid = StructuredGridFactory<GridType>::
> createCubeGrid(lowerLeft, upperRight, elements);
>
> Bye,
> Jö.
>
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110105/dd73e02d/attachment.htm>
More information about the Dune
mailing list