[Dune] Creating a Grid

Jö Fahlke jorrit at jorrit.de
Wed Jan 5 14:44:32 CET 2011


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ö.

-- 
Um die Vorfälle in Roswell macht die amerikanische Regierung seit 1994
kein Geheimnis mehr, lediglich um die Militärlabors in der AREA 51.
Und der Grund dafür ist möglicherweise viel bedrohlicher als ein paar
tote Aliens.
-- Antje Kraschinski in Telepolis (www.heise.de/tp)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110105/f3cf7360/attachment.sig>


More information about the Dune mailing list