<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear Dune, we are using the svn version as follows:</div><div><br></div><div><br></div><div><div>pcp029897:hades oswald$ svn info ../dune-common/</div><div>Path: ../dune-common</div><div>URL: <a href="https://svn.dune-project.org/svn/dune-common/trunk">https://svn.dune-project.org/svn/dune-common/trunk</a></div><div>Repository Root: <a href="https://svn.dune-project.org/svn/dune-common">https://svn.dune-project.org/svn/dune-common</a></div><div>Repository UUID: 419231ca-4411-0410-aba2-fc6cf8c4f609</div><div>Revision: 6042</div><div>Node Kind: directory</div><div>Schedule: normal</div><div>Last Changed Author: sander</div><div>Last Changed Rev: 6042</div><div>Last Changed Date: 2010-06-08 14:29:43 +0200 (Tue, 08 Jun 2010)</div><div><br></div><div>pcp029897:hades oswald$ svn info ../dune-grid</div><div>Path: ../dune-grid</div><div>URL: <a href="https://svn.dune-project.org/svn/dune-grid/trunk">https://svn.dune-project.org/svn/dune-grid/trunk</a></div><div>Repository Root: <a href="https://svn.dune-project.org/svn/dune-grid">https://svn.dune-project.org/svn/dune-grid</a></div><div>Repository UUID: f82f27de-4411-0410-b156-930a902cda50</div><div>Revision: 6763</div><div>Node Kind: directory</div><div>Schedule: normal</div><div>Last Changed Author: joe</div><div>Last Changed Rev: 6763</div><div>Last Changed Date: 2010-06-08 13:11:49 +0200 (Tue, 08 Jun 2010)</div><div><br></div><div>pcp029897:hades oswald$ svn info ../dune-istl/</div><div>Path: ../dune-istl</div><div>URL: <a href="https://svn.dune-project.org/svn/dune-istl/trunk">https://svn.dune-project.org/svn/dune-istl/trunk</a></div><div>Repository Root: <a href="https://svn.dune-project.org/svn/dune-istl">https://svn.dune-project.org/svn/dune-istl</a></div><div>Repository UUID: 8c7282f0-4411-0410-8e4f-cdd3e049afb8</div><div>Revision: 1221</div><div>Node Kind: directory</div><div>Schedule: normal</div><div>Last Changed Author: mblatt</div><div>Last Changed Rev: 1221</div><div>Last Changed Date: 2010-05-28 12:00:29 +0200 (Fri, 28 May 2010)</div><div><br></div><div>pcp029897:hades oswald$ svn info ../dune-grid-howto</div><div>Path: ../dune-grid-howto</div><div>URL: <a href="https://svn.dune-project.org/svn/dune-grid-howto/trunk">https://svn.dune-project.org/svn/dune-grid-howto/trunk</a></div><div>Repository Root: <a href="https://svn.dune-project.org/svn/dune-grid-howto">https://svn.dune-project.org/svn/dune-grid-howto</a></div><div>Repository UUID: 971b7fa1-7d12-0410-b1b7-9c127676b1f7</div><div>Revision: 318</div><div>Node Kind: directory</div><div>Schedule: normal</div><div>Last Changed Author: joe</div><div>Last Changed Rev: 318</div><div>Last Changed Date: 2010-06-07 11:37:57 +0200 (Mon, 07 Jun 2010)</div><div><br></div><div><br></div><div>when we try to define the grid type by this sequence of code:</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(82, 143, 115); ">//=========================================================================</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(82, 143, 115); ">// Use this block, if you want operate with the <span style="text-decoration: underline">dgf</span> parser.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span style="color: #911d67">#define</span> ALUGRID_SIMPLEX</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span style="color: #911d67">#define</span> GRIDDIM 3</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(56, 63, 252); "><span style="color: #911d67">#include</span><span style="color: #000000"> </span><dune/grid/utility/gridtype.hh></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(56, 63, 252); "><span style="color: #911d67">#include</span><span style="color: #000000"> </span><dune/grid/io/file/dgfparser/dgfgridtype.hh></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(56, 63, 252); "><span style="color: #911d67">#include</span><span style="color: #000000"> </span><dune/grid/io/file/dgfparser/dgfparser.hh></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(82, 143, 115); ">//=========================================================================</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(82, 143, 115); "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(82, 143, 115); "><br></div></div></div><div>we get the following error message:</div><div>============================</div><div><br></div><div><div>mpicxx -DHAVE_CONFIG_H -I. -I..  -I/Users/oswald/svnwork/dune-trunk/dune-common -I/Users/oswald/svnwork/dune-trunk/dune-grid -I/Users/oswald/svnwork/dune-trunk/dune-istl -DMPICH_IGNORE_CXX_SEEK -O2 -I/Users/oswald/extlib/boost-trunk/include -I/Users/oswald/extlib/rlog-trunk/includ</div><div>e/  -I/Users/oswald/extlib/openmpi-1.4.2/include -DMPIPP_H -DENABLE_MPI=1 -I/Users/oswald/extlib/ALUGrid-1.22/include -I/Users/oswald/extlib/ALUGrid-1.22/include/serial -I/Users/oswald/extlib/ALUGrid-1.22/include/duneinterface -DENABLE_ALUGRID -I/Users/oswald/extlib/ALUGrid-1.22/i</div><div>nclude/parallel   -I/Users/oswald/extlib/openmpi-1.4.2/include -DMPIPP_H -DENABLE_MPI=1  -DWITH_INDEX_SETS -DMPICH_IGNORE_CXX_SEEK -O2 -MT hades3d-hades3d.o -MD -MP -MF .deps/hades3d-hades3d.Tpo -c -o hades3d-hades3d.o `test -f 'hades3d.cc' || echo './'`hades3d.cc</div><div>In file included from hades3d.cc:42:</div><div>/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/gridtype.hh:4:2: warning: #warning "<dune/grid/utility/gridtype.hh> has been deprecated."</div><div>/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/gridtype.hh:5:2: warning: #warning "Use your projects <gridtype.hh> instead (generated by adding DUNE_OUTPUT_GRIDTYPE to configure.ac)"</div><div>In file included from hades3d.cc:43:</div><div>/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/dgfgridtype.hh:4:2: warning: #warning "<dune/grid/io/file/dgfgridtype.hh> has been deprecated."</div><div>/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/dgfgridtype.hh:5:2: warning: #warning "Use your projects <dgfgridtype.hh> instead (generated by adding DUNE_OUTPUT_GRIDTYPE to configure.ac)"</div><div>In file included from ../stdincl/nonsciconst.hh:37,</div><div>                 from ../stdincl/stringify.hh:30,</div><div>                 from hades3d.cc:70:</div><div>../config.h:510:5: error: #error "Ambiguous definition of GRIDTYPE."</div><div>In file included from ../stdincl/nonsciconst.hh:37,</div><div>                 from ../stdincl/stringify.hh:30,                 from hades3d.cc:70:</div><div>../config.h:527: error: redefinition of ‘const int Dune::GridSelector::dimgrid’/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/griddim.hh:62: error: ‘const int Dune::GridSelector::dimgrid’ previously defined here</div><div>../config.h:528: error: redefinition of ‘const int Dune::GridSelector::dimworld’</div><div>/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/griddim.hh:72: error: ‘const int Dune::GridSelector::dimworld’ previously defined here</div><div>In file included from ../meshinfo/meshstatistics.hh:138,</div><div><br></div></div><div>===========================================</div><div><br></div><div><br></div><div>Now, untile 'recently' this used to work perfectly well. We are of course aware that there were some</div><div>changes w.r.t specifying the GridType, but it is somewhat difficult to find out how exactly I should</div><div>this now ?</div><div><br></div><div>Apart from this, we have added DUNE_OUTPUT_GRIDTYPE  to the configure.ac file.</div><div><br></div><div>Can you give us some enlightment ? That would be highly appreciated.</div><div><br></div><div>I should also add that if I add</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(82, 143, 115); ">#define USED_ALUGRID_SIMPLEX_GRIDTYPE</div></div><div><br></div><div>before the inclusion of config.h</div><div><br></div><div>then this error goes away.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Greetings, Benedikt</div><div><br></div><div><br></div><div><br></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>--------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div>Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, <a href="http://www.psi.ch">www.psi.ch</a>, Computational Accelerator Scientist, <a href="http://amas.web.psi.ch">http://amas.web.psi.ch</a></div><div>Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, <a href="mailto:benedikt.oswald@psi.ch">benedikt.oswald@psi.ch</a>, +41(0)56 310 32 12</div><div><br></div><div>"Passion is required for any great work, and for the revolution passion and audacity are required in big doses.",<br> Ernesto 'Che' Guevara, Letter to his parents.<br>--------------------------------------------------------------------------------------------------------------------------------------------------------------------</div></div></div>
</div>
<br></body></html>