[petsc-users] compile own solver with petsc-dev

Satish Balay balay at mcs.anl.gov
Thu Aug 4 17:00:02 CDT 2011


On Thu, 4 Aug 2011, Ping Rong wrote:

> Hello all,
> 
> I have developed a ksp solver, which is located in /src/ksp/ksp/impls/xxx. I
> used petsc-3.1.0-p8, when I changed the solver code, I updated petsc with
>         cd /src/ksp/ksp/impls/xxx
>         make ACTION=libfast
>         cd $PETSC-ROOT
>         make ranlib shared
> I have recently started using petsc-dev, which switches to cmake to compile
> the library.

If configure finds cmake - then 'make all' defaults to cmake build. Its
still possible to get the old build with:

make all-legacy

> By the above method, the compilation still went through, however,
> when I try to link my program to libpetsc.so, it gives errors of unresolved
> symbols. Is there a new way to partially update the library without running
> the whole compilation over?  any help would be appreciated!

With cmake build - you could do: [anywhere in petsc tree]

make cmake

Satish


More information about the petsc-users mailing list