<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jö!<br>
The method is indeed static, but you can still call it as if it belonged<br>
to an object.<br>
Oliver<br>
<br>
Am 05.01.2011 14:44, schrieb Jö Fahlke:
<blockquote cite="mid:20110105134432.GD8495@paranoia" type="cite">
<pre wrap="">Am Wed, 5. Jan 2011, 12:59:24 +0100 schrieb Alex Evanovic:
</pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap="">
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ö.
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<br>
</body>
</html>