[petsc-users] PT-SCOTCH not available

Satish Balay balay at mcs.anl.gov
Thu Oct 25 19:14:20 CDT 2012


try using the attached patch and see if it works.

patch -Np1 < mumps-ptscotch.py
rm -rf externalpackages/scotch*
./configure ....

Satish

On Thu, 25 Oct 2012, Jinquan Zhong wrote:

> Yes, I used
> 
> ./configure \
> --with-blas-lib=/data/Users/jzhong/scalapack-2.0.1/lib/librefblas.a  \
> --with-lapack-lib=/data/Users/jzhong/scalapack-2.0.1/lib/libreflapack.a  \
> --download-blacs --download-scalapack \
> --with-mpi-dir=/data/Users/jzhong/mpich2 \
> --with-mpiexec=/data/Users/jzhong/mpich2/bin/mpiexec \
> --with-cmake=/data/Users/jzhong/CMAKE/cmake-2.8.8/bin/cmake \
> --with-scalar-type=complex --with-precision=double --with-clanguage=c --with-fortran-kernels=generic \
> --with-ptscotch=1 --download-ptscotch=yes \
> --download-mumps --download-superlu_dist \
> --download-parmetis --download-metis --with-fortran-interfaces
> 
> Jinquan
> 
> 
> -----Original Message-----
> From: petsc-users-bounces at mcs.anl.gov [mailto:petsc-users-bounces at mcs.anl.gov] On Behalf Of Satish Balay
> Sent: Thursday, October 25, 2012 3:49 PM
> To: PETSc users list
> Subject: Re: [petsc-users] PT-SCOTCH not available
> 
> do you also have parmetis installed?
> 
> Satish
> 
> On Thu, 25 Oct 2012, Jinquan Zhong wrote:
> 
> > Dear PETSc folks,
> > 
> > I am trying to install PT-SCOTCH as the external package for PETSc.  I used
> >                 --with-ptscotch=1
> > --download-ptscotch=yes
> > 
> > to install PETSc.  No complains.
> > 
> > But when I tried to use PT-SCOTCH, here is the message I got ...
> > ZMUMPS 4.10.0
> > L U Solver for unsymmetric matrices
> > Type of parallelism: Working host
> > 
> > ****** ANALYSIS STEP ********
> > 
> > PT-SCOTCH not available.
> > Aborting.
> > ...
> > 
> > Any idea to make it work?
> > 
> > Thanks,
> > 
> > Jinquan
> > 
> 
> 
-------------- next part --------------
diff --git a/config/PETSc/packages/MUMPS.py b/config/PETSc/packages/MUMPS.py
--- a/config/PETSc/packages/MUMPS.py
+++ b/config/PETSc/packages/MUMPS.py
@@ -69,7 +69,7 @@
       g.write('LMETIS = '+self.libraries.toString(self.parmetis.lib)+'\n')
       orderingsc += ' -Dmetis -Dparmetis'
       orderingsf += ' '+self.compilers.FortranDefineCompilerOption+'metis '+self.compilers.FortranDefineCompilerOption+'parmetis'
-    elif self.ptscotch.found:
+    if self.ptscotch.found:
       g.write('ISCOTCH = '+self.headers.toString(self.ptscotch.include)+'\n')
       g.write('LSCOTCH = '+self.libraries.toString(self.ptscotch.lib)+'\n')
       orderingsc += ' -Dscotch  -Dptscotch'
@@ -139,7 +139,7 @@
     if not self.framework.argDB['with-mumps-serial']:
       if self.parmetis.found:
         self.deps.append(self.parmetis)
-      elif self.ptscotch.found:
+      if self.ptscotch.found:
         self.deps.append(self.ptscotch)
     PETSc.package.NewPackage.configureLibrary(self)
      # [parallem mumps] make sure either ptscotch or parmetis is enabled
diff --git a/config/PETSc/packages/PTScotch.py b/config/PETSc/packages/PTScotch.py
--- a/config/PETSc/packages/PTScotch.py
+++ b/config/PETSc/packages/PTScotch.py
@@ -4,9 +4,9 @@
   def __init__(self, framework):
     PETSc.package.NewPackage.__init__(self, framework)
     #'https://gforge.inria.fr/frs/download.php/28978/scotch_5.1.12b_esmumps.tar.gz'
-    self.download     = ['http://ftp.mcs.anl.gov/pub/petsc/externalpackages/scotch_5.1.12b_esmumps-p2.tar.gz']
+    self.download     = ['http://ftp.mcs.anl.gov/pub/petsc/externalpackages/scotch_5.1.12b_esmumps-p1.tar.gz']
     self.downloadfilename = 'scotch'
-    self.liblist      = [['libptscotch.a','libptscotcherr.a']]
+    self.liblist      = [['libptesmumps.a', 'libptscotch.a','libptscotcherr.a']]
     self.functions    = ['SCOTCH_archBuild']
     self.includes     = ['ptscotch.h']
     self.requires32bitint = 0


More information about the petsc-users mailing list