[Dune] ALUGrid as a module versus ALUGrid Library 1.52

Benedikt Oswald benedikt.oswald at lspr.ch
Tue Feb 3 17:46:45 CET 2015


Hello Dominic,

thanks, here it is, attached.

Also, I wanted to thank you for your help with helping me to introduce
the additional
libraries, that worked very well, thank you very much!

Greetings, Benedikt


Am 03/02/15 um 16:07 schrieb Dominic Kempf:
> Hey Benedikt,
>
> could you send your cmake opts file and make sure that you pull the
> master branch of dune-grid and dune-common as of this morning? I have
> been investigating this exact issue recently.
>
> Dominic
>
> On Tue, Feb 3, 2015 at 2:11 PM, Christoph Grüninger
> <christoph.grueninger at iws.uni-stuttgart.de
> <mailto:christoph.grueninger at iws.uni-stuttgart.de>> wrote:
>
>     Hi Benedikt,
>
>         ----- using default flags $CONFIGURE_FLAGS from
>         /Users/oswald/gitwork/hades-dune/os.imac.lsprag.gcc492.alugrid152.cmake.opts
>         -----
>         WARNING: could not find module dune-alugrid,
>               module is also unknown to pkg-config.
>               Maybe you need to adjust PKG_CONFIG_PATH!
>               dune-alugrid is suggested by dune-grid-howto
>         Skipping dune-alugrid!
>
>
>     this is just the output from dunecontrol. This is not the reason
>     for your problem. It should be somewhere below.
>     In general, Alugrid 1.52 is still supported.
>
>     My tip: Build module by module, chech which external libraries
>     are unexpectedly not found, and run each module's tests.
>     This should narrow your problems pretty fast.
>
>     Bye
>     Christoph
>
>     -- 
>     Je n'ai rien contre les étrangers, quelques uns de mes meilleurs amis
>     sont des étrangers. Mais ces étrangers là ne sont pas de chez nous!
>     [Agecanonix, Astérix - Le cadeau de César]
>
>
>     _______________________________________________
>     Dune mailing list
>     Dune at dune-project.org <mailto:Dune at dune-project.org>
>     http://lists.dune-project.org/mailman/listinfo/dune
>
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-- 
------------------------------------------------------------------------------------------------
Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone - +41 43 366 90 74
Technoparkstrasse 1, CH-8005 Zürich, benedikt.oswald at lspr.ch - labor vincit omnia improbus
------------------------------------------------------------------------------------------------

-------------- next part --------------
#################################################################################################################
## objective - opts file for building vulcain, based on Dune, with cmake
##
## history - 2014 apr 16, created
##
## usage - time ./dune-common/bin/dunecontrol --use-cmake --opts=os.imac.lsprag.gcc492.alugrid152.cmake.opts all
##
##################################################################################################################


USE_CMAKE=yes

CONFIGURE_FLAGS="--with-alugrid='$HOME/extlib/alugrid/1.52/openmpi/1.8.4/gcc/4.9.2 --enable-parallel --enable-experimental-grid-extensions CC=mpicc CXX=mpicxx " 

CMAKE_PREFIX_PATH="\
/opt/extlib/boost/1.57.0/gcc/4.9.2;\
/opt/extlib/parmetis/4.0.3/openmpi/1.8.4/gcc/4.9.2;\
/opt/extlib/metis/5.1.0/gcc/4.9.2;\
/opt/extlib/superludist/3.3/openmpi/1.8.4/gcc/4.9.2;\
/opt/extlib/superludist/3.3/openmpi/1.8.4/gcc/4.9.2/SRC;\
/opt/extlib/superludist/3.3/openmpi/1.8.4/gcc/4.9.2/lib;\
"


## define gcc options - nota bene: -O2 and -g2 cause gcc 4.9.2 to crash but -O2 alone works !
GXX_WARNING_OPTS="-Wall"
GXX_OPTS="-g3" 


## define superludist paths & library
SUPERLU_DIST_OPTS="-DHAVE_SUPERLU_DIST"
SUPERLU_DIST_INCLUDE_PATH="-I/opt/extlib/superludist/3.3/openmpi/1.8.4/gcc/4.9.2/SRC"
SUPERLU_DIST_LIBRARY="-L/opt/extlib/superludist/3.3/openmpi/1.8.4/gcc/4.9.2/lib -lsuperludist -L/opt/extlib/parmetis/4.0.3/openmpi/1.8.4/gcc/4.9.2/lib -lparmetis -L/opt/extlib/metis/5.1.0/gcc/4.9.2/lib -lmetis -framework Accelerate"




CMAKE_FLAGS="\
-DMY_WEIRD_FLAGS='-DHAVE_SUPERLU_DIST -DBOOST_LOG_DYN_LINK' \
-DMY_WEIRD_LIB_PATH='-L/opt/extlib/superludist/3.3/openmpi/1.8.4/gcc/4.9.2/lib -L/opt/extlib/parmetis/4.0.3/openmpi/1.8.4/gcc/4.9.2/lib -L/opt/extlib/metis/5.1.0/gcc/4.9.2/lib' \
-DMY_WEIRD_LIBS='superludist;parmetis;metis' \
-DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
-DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS $SUPERLU_DIST_INCLUDE_PATH \" \
-DCMAKE_LIBRARY_PATH:RELEASE=\"/opt/extlib/boost/1.57.0/gcc/4.9.2/lib\" \
-DCMAKE_LIBRARY_PATH:DEBUG=\"/opt/extlib/boost/1.57.0/gcc/4.9.2/lib\" \
-DCMAKE_STANDARD_LIBRARIES:RELEASE=\"-lboost_system -lprogram_options\" \
-DCMAKE_STANDARD_LIBRARIES:DEBUG=\"-lboost_system -lprogram_options\" \
-DCMAKE_SHARED_LINKER_FLAGS=\"-lzlib\" \
-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
-lboost_system -lprogram_options
"

# nota bene:
#
# 1) we need the -DBOOST_LOG_DYN_LINK for linking the boost loggin library on platforms where dynamic libraries are used
#
# 2) we do not specify this where libraries must be linked statically


More information about the Dune mailing list