<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
>From using PETSC from different things, I wrote myself a script to configure and compile PETSC.<BR>
If you want to use openmp, you would need to include<BR>
"-fopenmp -Wall -mtune=native -march=native -fomit-frame-pointer -pipe -ftree-vectorize"<BR>
into the flags.<BR>
<BR>
------<BR>
#!/bin/bash<BR>
export PETSC_DIR=`pwd`<BR>
export PETSC_ARCH=hypre_mpi_cxx<BR>
#export OPTS="--with-clanguage=c++ --with-x=0 --with-debugging=0 --with-shared=0 --with-default-arch=0 --with-mpi-dir=/usr/lib/mpich-shmem "<BR>
export OPTS="--with-clanguage=c++ --with-x=0 --with-debugging=0 --with-shared=0 --with-default-arch=0 --with-mpi=1 --download-hypre=1 --with-scalar-type=real"<BR>
CPPOPTS="-O3 -march=native -mtune=native"<BR>
export OPTS2="COPTFLAGS=' $CPPOPTS ' FOPTFLAGS='-I  $CPPOPTS '"<BR>
echo $PATH<BR>
echo config/configure.py $OPTS $OPTS2<BR>
config/configure.py $OPTS $OPTS2<BR>
make -j 4<BR>
make test<BR>
---<BR>
<BR>
On Mon, 2008-10-13 at 15:31 +0200, Lars Rindorf wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi Everybody

Just a tip: if you want to compile getdp 2.0.0 with petsc on linux, then
petsc should (also) be compiled with the C++ compiler 'g++'. This is
different from getdp 1.2.1.

KR, Lars

_______________________________________________
getdp mailing list
<A HREF="mailto:getdp@geuz.org">getdp@geuz.org</A>
<A HREF="http://www.geuz.org/mailman/listinfo/getdp">http://www.geuz.org/mailman/listinfo/getdp</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>