[petsc-users] run sundials from Petsc

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


On Jul 27, 2010, at 5:59 PM, Jed Brown wrote:

> On Tue, 27 Jul 2010 17:48:12 -0400, Xuan YU <xxy113 at psu.edu> wrote:
>> Hi,
>>
>> I run config/configure.py --download-sundials=1
>> make all
>> make test
>>
>> and then, when I compile the code, there is no error but
>> pihm.o: In function `main':
>> pihm.c:(.text+0x1148): undefined reference to `TSSundialsSetType'
>> pihm.c:(.text+0x116d): undefined reference to  
>> `TSSundialsSetTolerance'
>> collect2: ld returned 1 exit status
>>
>> Does this mean that I didn't install sundials correctly?
>
> What happens when you
>
>  cd $PETSC_DIR/src/ts/examples/tutorials
>  make ex4
>  ./ex4 -ts_type sundials
>

It works well.


> 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

> 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/19a22d3a/attachment-0001.htm>


More information about the petsc-users mailing list