the visualization.cc only compiles if the GRIDDIM macro is defined. Therefore, I suggest to add the attached patch to the dune-grid-howto. Then it should also compile with Benedikt's configuration options.<br><br>Martin D.<br>
<br><div class="gmail_quote">2009/3/10 Benedikt Oswald <span dir="ltr"><benedikt.oswald@psi.ch></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Martin, the configure options are below. thanks for looking! Greetings, Benedikt<br>
<br>
<br>
========================<br>
<br>
<br>
<br>
#AUTOGEN_FLAGS="--ac=2.59 --am=-1.9.2"<br>
<br>
OFLAGS2="-O3 -DNDEBUG \<br>
  -funroll-loops -finline-functions \<br>
  --param max-inline-insns-single=3000 \<br>
        --param large-function-growth=3500 \<br>
  --param inline-unit-growth=3000 \<br>
  -ffast-math -fomit-frame-pointer -march=opteron -msse3 -mfpmath=sse \<br>
   -Wall"<br>
OFLAGS3=""<br>
<br>
CONFIGURE_FLAGS="CXX='mpicxx' CC='mpicc' LD='mpicxx'<br>
                 CXXFLAGS='-DMPICH_IGNORE_CXX_SEEK '<br>
                                                                 CPPFLAGS='-DMPICH_IGNORE_CXX_SEEK '<br>
                 LDFLAGS='-lgfortran  /usr/lib64/libblas.so.3.1.1 '<br>
                                                                 LTFLAGS='-all-static '<br>
                 --enable-experimental-hades3deld<br>
                 --disable-shared<br>
                 --disable-documentation<br>
                 --enable-static<br>
                 --enable-parallel<br>
                 --enable-boost<br>
                 --with-boost='/scratch2/amas/oswald/extlib/merlin/boost-1.37.0'<br>
                 --enable-debug-high<br>
                 --enable-message-high<br>
                 --with-trilinos='/scratch2/amas/oswald/extlib/merlin/trilinos-9.0.1-openmpi-1.2.5'<br>
                 --enable-trilinos-solver<br>
                 --with-geoexporter='/scratch2/amas/oswald/ownlib/merlin/faraday/euklid'<br>
                 --prefix='/scratch2/amas/oswald/ownlib/merlin/hades'<br>
                 --with-metis='/scratch2/amas/oswald/extlib/merlin/metis-4.0'<br>
                 --with-alugrid='/scratch2/amas/oswald/extlib/merlin/ALUGrid-1.14-openmpi-1.2.5'<br>
                 --with-rlog='/scratch2/amas/oswald/extlib/merlin/rlog-1.4'"<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
========================<br>
<div><div></div><div class="h5"><br>
Martin Nolte wrote:<br>
> Hallo Benedikt,<br>
><br>
> It sure compiles for me (revison 245; the other core modules are also up<br>
> to date).<br>
><br>
> So I will have to ask you to provide more data. Can you tell me your<br>
> configure options (i.e., the file you passed with --opts to<br>
> dunecontrol)? The compiler version might also be of interest (though I<br>
> don't think this is the problem).<br>
><br>
> Yours,<br>
><br>
> Martin<br>
><br>
> Benedikt Oswald wrote:<br>
>> Dear Dune, thanks for updating the dune-grid-howto, in the release 1.2.<br>
>><br>
>> There seems to be another problem, concerning visualization.cc<br>
>><br>
>> Thanks and greetings, Benedikt<br>
>><br>
>><br>
>> visualization.cc: In function ‘int main(int, char**)’:<br>
>> visualization.cc:62: error: ‘dimGrid’ was not declared in this scope<br>
>> visualization.cc:62: error: ‘dimGrid’ cannot appear in a<br>
>> constant-expression<br>
>> visualization.cc:62: error: template argument 1 is invalid<br>
>> visualization.cc:62: error: template argument 2 is invalid<br>
>> visualization.cc:62: error: template argument 1 is invalid<br>
>> visualization.cc:62: error: invalid type in declaration before ‘;’ token<br>
>> visualization.cc:63: error: request for member ‘grid’ in ‘uc4’, which<br>
>> is of non-class type ‘int’<br>
>> visualization.cc:66: error: ‘dimGrid’ cannot appear in a<br>
>> constant-expression<br>
>> visualization.cc:66: error: ‘dimGrid’ cannot appear in a<br>
>> constant-expression<br>
>> visualization.cc:66: error: template argument 1 is invalid<br>
>> visualization.cc:66: error: template argument 2 is invalid<br>
>> visualization.cc:66: error: template argument 1 is invalid<br>
>> visualization.cc:66: error: invalid type in declaration before ‘;’ token<br>
>> visualization.cc:67: error: request for member ‘grid’ in ‘uc5’, which<br>
>> is of non-class type ‘int’<br>
>> make[2]: *** [visualization-visualization.o] Error 1<br>
>> make[2]: Leaving directory<br>
>> `/scratch2/amas/oswald/svnwork/merlin/dune-1.2/dune-grid-howto'<br>
>> make[1]: *** [all-recursive] Error 1<br>
>> make[1]: Leaving directory<br>
>> `/scratch2/amas/oswald/svnwork/merlin/dune-1.2/dune-grid-howto'<br>
>> make: *** [all] Error 2<br>
>> --- Failed to build dune-grid-howto ---<br>
>> Execution of dunecontrol terminated due to errors!<br>
>><br>
>><br>
>><br>
><br>
<br>
<br>
--<br>
</div></div><div class="im">------------------------------------------------------------------------------------------------------------------<br>
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, <a href="http://www.psi.ch" target="_blank">www.psi.ch</a>, Computational Accelerator Scientist,<br>
Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald@psi.ch, +41(0)56 310 32 12<br>
<br>
"The budget should be balanced, the Treasury should be refilled, public debt should be reduced,<br>
the arrogance of officialdom should be tempered and controlled, and the assistance to foreign<br>
lands should be curtailed lest Rome become bankrupt. People must again learn to work, instead<br>
of living on public assistance." (Cicero, ca. 55 BC).<br>
<br>
<a href="http://amas.web.psi.ch/people/boswald/index.html" target="_blank">http://amas.web.psi.ch/people/boswald/index.html</a><br>
------------------------------------------------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Dune mailing list<br>
<a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Martin Drohmann<br>Institut für Numerische und Angewandte Mathematik<br>Westfälische Wilhelms-Universität Münster<br>Einsteinstr. 62, D-48149 Münster<br>Tel. +49 (0) 251 83-32753<br>
Fax. +49 (0) 251 83-32729<br>