[petsc-users] Missing symbols in libpetscts.h
Satish Balay
balay at mcs.anl.gov
Thu Jul 22 09:37:23 CDT 2010
TSSetIFunction() doesn't exist in petsc-3.0.0. The same code will not
work with both versions of petsc.
You should stick with one version [i.e the latest ..]
Satish
On Thu, 22 Jul 2010, Filippo Spiga wrote:
> Dear all,
> I'm trying to compile PETSc 3.0.0-p12 and PETSc 3.1-p3. The compilation
> ends without visible problems. However when I compile my software these error
> appears
>
> ../../../myApp/src/timeDepSolver.cpp:13: warning: deprecated conversion from
> string constant to 'char*'
> ../../../myApp/src/timeDepSolver.cpp: In member function 'virtual int
> TimeDependentSolver::run()':
> ../../../myApp/src/timeDepSolver.cpp:145: error: 'TSSetIFunction' was not
> declared in this scope
> ../../../myApp/src/timeDepSolver.cpp:146: error: 'TSSetIJacobian' was not
> declared in this scope
> ../../../myApp/src/timeDepSolver.cpp:150: error: 'TSTHETA' was not declared in
> this scope
> [...]
>
> For both versions, "make test" ends successfully. If I look inside the static
> library I don't see 'TSSetIFunction', 'TSSetIJacobian' and 'TSTHETA'.
>
> $ nm ~/local_install/lib/libpetscts.a | grep TSSetIJacobian
> $
>
> I configured and compiled the package use these steps:
>
> $ export PETSC_DIR=`pwd`
> $ export PETSC_ARCH=linux-gnu-c-debug
>
> $ export CXX=$HOME/local_install/bin/mpicxx
> $ export CC=$HOME/local_install/bin/mpicc
> $ export FC=$HOME/local_install/bin/mpif77
>
> $ python config/configure.py --prefix=$HOME/local_install --with-debugging=1
> --with-fortran-kernels=1 --with-mpi-shared=0 --with-shared=0 --with-dynamic=0
> --with-batch=0 --with-x=1 --with-mpi=$HOME/local_install
> --with-windows-graphics=0 --with-memcmp-ok --download-hypre=1
> --download-spooles=1 --download-plapack=1 --download-mumps=1 --download-spai=1
> --download-blacs=1 --download-triangle=1 --download-f-blas-lapack=1
> --download-umfpack=1 --download-sowing=1 --download-c2html=1
> --download-superlu_dist=1 --download-parmetis=1 --download-scalapack=1
> --download-prometheus=1 --download-superlu=1
>
> $ PETSC_ARCH=linux-gnu-c-debug; export PETSC_ARCH
> $ PETSC_DIR=$HOME/packages/petsc-3.0.0-p12; export PETSC_DIR
>
> $ make all
>
> (MPI is mpich2, latest stable version. It works.)
>
> What's wrong?
>
> Thank you very much in advance for your support.
>
> Regards
>
>
>
More information about the petsc-users
mailing list