Need help adding a new solver to the petsc library

Barry Smith bsmith at mcs.anl.gov
Mon Nov 3 11:23:54 CST 2008


    Please send your $PETSC_ARCH/conf/configure.log and $PETSC_ARCH/ 
conf/make.log to petsc-maint at mcs.anl.gov (not to this email address)
and we'll take a look.  Also send your modified Scotch.py file.

   Thanks


    Barry

On Nov 3, 2008, at 10:45 AM, Xavier Lacoste wrote:

> Hello,
>
> I want to add the solver PaStiX (https://gforge.inria.fr/projects/pastix/ 
> ) to the PETSc library.
> I Check-outed the last hg version of PETSc and started adding my  
> PaStiX.py script, based on MUMPS one, in petsc-dev/config/PETSc/ 
> packages/ .
> I modified first Scotch.py wich wasn't updated because PaStiX needs  
> Scotch.
>
> My problem is that I couldn't succed in configuring PETSCc with "-- 
> with-pastix=1 etc." because i don't know how to say PETSc that  
> PaStiX needs the "-L/Scotch/dir -lscotch etc."
>
> I have the setupDependencies :
>
>
> def setupDependencies(self, framework):
>   PETSc.package.Package.setupDependencies(self, framework)
>   self.mpi        = framework.require('config.packages.MPI',self)
>   self.blasLapack =  
> framework.require('config.packages.BlasLapack',self)
>   self.scotch     = framework.require('PETSc.packages.Scotch',self)
>   self.deps       = [self.mpi,self.blasLapack,self.scotch]
>   return
>
> But it didn't helped, the -L/scotchdir/lib is still missing...
>
> > Executing: mpicc  -o conftest    -g  conftest.o  -Wl,-rpath,/home/ 
> xl/pastix/lib -L/home/xl/pastix/lib -lpastix -lpthread -lscotch - 
> llapack -lblas *
> > -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/lib -ldl -lgcc_s - 
> lgfortranbegin -lgfortran -lm -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/ 
> usr/lib/gcc/i486-linux-gnu
> > -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu - 
> L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu
> > -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/lib -L/lib -lm -L/usr/lib/ 
> gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/lib - 
> ldl -lgcc_s -ldl
> > sh:
> > Possible ERROR while running linker: /usr/bin/ld: cannot find - 
> lscotch
>
> Hope i'm on the good Mailing list for this kind of questions.
>
> Thanks
>
> XL.
> PaStiX team, INRIA-Bordeaux-Sud-Ouest, France.
>
>
>
>




More information about the petsc-dev mailing list