[Dune] Set environment variables for dunecontrol

Christian Engwer christian.engwer at uni-muenster.de
Fri Mar 22 21:32:33 CET 2013


Hi Christoph,

find attached the opts file I'm using... It might containe some
helpful details. Especially your question should be answered ;-)

Christian

On Fri, Mar 22, 2013 at 08:24:12PM +0100, Christoph Grüninger wrote:
> Hi Dune,
> I am wondering what's the best way to set environment variables for
> dunecontrol. For example I need to set MPICC for MPI or CC and CXX 
> to use clang. In both cases I place these variables before the 
> command invoking dunecontrol. But it's cumbersome and error-prone.
> I'd like to add to my opts file, but simply adding the variable and
> its value does not seem to work.
> 
> Do I miss something? What are you doing?
> 
> Have a nice weekend
> Christoph
> 
> -- 
> [..] we shall send to the moon, 240,000 miles away from the control
> station in Houston, a giant rocket [..] and then return it safely to
> earth, re-entering the atmosphere at speeds of over 25,000 miles per
> hour, causing heat about half that of the temperature of the sun,
> almost as hot as it is here today, [..] then we must be bold.
> [John F. Kennedy Moon Speech - September 12, 1962 - Rice Stadium]
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 

-- 
Prof. Dr. Christian Engwer 
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster

E-Mail	christian.engwer at uni-muenster.de
Telefon	+49 251 83-35067
FAX		+49 251 83-32729
-------------- next part --------------
DUNE_CONTROL_PATH="`ls $HOME/Uni/Dune/*/dune.module | tr '\n' ':'`"
RESUME_FILE=$HOME/Uni/Dune/.dune.resume
CACHE_FILE=$HOME/Uni/Dune/.dune.configure.cache
# CACHE_FILE=/dev/null
LIBS=$HOME/Uni/Libs
CXXFLAGS="-g -Wall -O3 -fPIC"
MPICC=mpicc.openmpi
CXX=g++-4.6
# CXX=g++-4.5
BUILDDIR=build.$CXX

# CXX="/usr/bin/time $CXX"

# CXXFLAGS="$CXXFLAGS -fstrict-aliasing -Wstrict-aliasing=2"
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
CXXFLAGS="$CXXFLAGS -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-but-set-variable"

CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-minimal-debug-level=info"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --cache-file=$CACHE_FILE"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS CXX=$CXX CXXFLAGS='$CXXFLAGS'"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-fieldvector-size-is-method"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --prefix=$HOME/tmp/install-dune"
# CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-shared"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-parallel MPICC=$MPICC"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-ug=$LIBS"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-psurface=$LIBS/build/libpsurface-1.2beta-rc4"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-amiramesh=$LIBS"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-petsc=/usr/lib/petscdir/3.1/"
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-mex=mkoctfile"


More information about the Dune mailing list