<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
The are 2 issues here<br>
1) will the code actually work on quadrilaterals (e.g. SGrid)<br>
2) you need some more general grid reader (e.g. DGF)<br>
<br>
If the code is only for triangular grids, you have to have on of the 3
available<br>
implementations (Alberta,ALU,UG) and then cut and paste some lines from
the<br>
finitevolume.cc:<br>
typedef GridSelector :: GridType Grid;<br>
std::stringstream dgfFileName;<br>
dgfFileName << "grids/unitcube" << Grid :: dimension
<< ".dgf";<br>
GridPtr<Grid> gridPtr( dgfFileName.str() );<br>
Grid& grid = *gridPtr;<br>
<br>
Then see what happens....<br>
<br>
Best<br>
Andreas<br>
<br>
On 15/02/11 13:54, Jö Fahlke wrote:
<blockquote cite="mid:20110215135440.GJ1523@paranoia" type="cite">
<pre wrap="">Am Tue, 15. Feb 2011, 14:15:43 +0100 schrieb S. Swayamjyoti:
</pre>
<blockquote type="cite">
<pre wrap="">Made it, *typedef Dune::SGrid<dim,dim> GridType;* instead of typedef
Dune::AlbertaGrid<dim,dim> GridType; in line 257. and then tried to make the
dune-grid-howto. I get errors saying * no matching function for call to
‘Dune::SGrid<3, 3, double>::SGrid(const char*&)’* in line 263.
</pre>
</blockquote>
<pre wrap="">
That cannot work, since there is no gridfactory and thus no gmshreader for
sgrid. You may have more luck with ALUGrid, though.
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>