[petsc-users] run sundials from Petsc

Xuan YU xxy113 at psu.edu
Tue Jul 27 17:39:39 CDT 2010


On Jul 27, 2010, at 6:22 PM, Jed Brown wrote:

> On Tue, 27 Jul 2010 18:14:46 -0400, Xuan YU <xxy113 at psu.edu> wrote:
>>> How are you linking PETSc?  I wonder if you're linking a different
>>> build
>>> than you just configured.
>>>
>>
>> my "PETSC_DIR       = " is the same to that of makefile of ex4
>
> What about your PETSC_ARCH?

PETSC_ARCH      =linux-gnu-c-opt


> Can you compare the link lines (what is
> actually output to the terminal) from that example and from yours?
>

example: /gpfs/home/xxy113/soft/petsc-3.1-p2/linux-gnu-c-debug/bin/ 
mpicc -o ex4.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -g3 -I/ 
gpfs/home/xxy113/soft/petsc-3.1-p2/linux-gnu-c-debug/include -I/gpfs/ 
home/xxy113/soft/petsc-3.1-p2/include -I/gpfs/home/xxy113/soft/ 
petsc-3.1-p2/linux-gnu-c-debug/include -D__INSDIR__=src/ts/examples/ 
tutorials/ ex4.c

my: gcc -o f.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -O -I/ 
gpfs/home/xxy113/soft/petsc-3.1-p2/linux-gnu-c-opt/include -I/gpfs/ 
home/xxy113/soft/petsc-3.1-p2/include -I/gpfs/home/xxy113/soft/ 
petsc-3.1-p2/include/mpiuni -D__INSDIR__=/work/petsc/ f.c



> Jed
>

Xuan YU (俞烜)
xxy113 at psu.edu




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100727/3e554bdc/attachment.htm>


More information about the petsc-users mailing list