[CIG-LONG] Compile error of gale
Walter Landry
walter at geodynamics.org
Fri Apr 13 16:24:42 PDT 2012
John Yu <johnyu at usc.edu> wrote:
> I just did (after launching an mpd daemon):
>
> [root at geosys petsc-3.2-p7]# make PETSC_DIR=/share/apps/petsc/3.2-p7
> PETSC_ARCH=arch-linux2-c-opt test
> Running test examples to verify correct installation
> Using PETSC_DIR=/share/apps/petsc/3.2-p7 and
> PETSC_ARCH=arch-linux2-c-opt
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1
> MPI process
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2
> MPI processes
> Completed test examples
>
> I think this means petsc is running okay?
It seems so. Try creating a Makefile (see attached), running it with
PETSC_DIR=/share/apps/petsc/3.2-p7 PETSC_ARCH=arch-linux2-c-opt make temp
and send back the output. That should tell us how to link Petsc programs.
Cheers,
Walter Landry
-------------- next part --------------
include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules
temp: temp.o
-${CLINKER} -o temp temp.o ${PETSC_SNES_LIB}
More information about the CIG-LONG
mailing list