Commits

BarryFSmith committed 6c8f237 Merge

commit after merge

Hg-commit: f02b2064636ca01024c2d591ea316a14179fa022

Comments (0)

Files changed (83)

bin/win32fe/win32fe.exe

Binary file modified.

bin/win32fe/win32feutils.dll

Binary file modified.

config/PETSc/Configure.py

       # F90 Modules
       if self.setCompilers.fortranModuleIncludeFlag:
         self.addMakeMacro('FC_MODULE_FLAG', self.setCompilers.fortranModuleIncludeFlag)
+      else: # for non-f90 compilers like g77
+        self.addMakeMacro('FC_MODULE_FLAG', '-I')
       if self.setCompilers.fortranModuleIncludeFlag:
         self.addMakeMacro('FC_MODULE_OUTPUT_FLAG', self.setCompilers.fortranModuleOutputFlag)
     else:
   def dumpMachineInfo(self):
     import platform
     import time
+    import script
     fd = file(os.path.join(self.arch.arch,'include','petscmachineinfo.h'),'w')
     fd.write('static const char *petscmachineinfo = \"\\n\"\n')
     fd.write('\"-----------------------------------------\\n\"\n')

config/PETSc/utilities/libraryOptions.py

 
   def isBGL(self):
     '''Returns true if compiler is IBM cross compiler for BGL'''
-    if self.libraries.check('', 'bgl_perfctr_void') and self.libraries.check('', '_xlqadd'):
+    if (self.libraries.check('', 'bgl_perfctr_void') or self.libraries.check('','ADIOI_BGL_Open')) and self.libraries.check('', '_xlqadd'):
       self.logPrint('BGL/IBM detected')
       return 1
     else:

config/configure.py

         opts.append(useName)
   return 0
 
+def chkwinf90():
+  for arg in sys.argv:
+    if (arg.find('win32fe') >= 0 and (arg.find('f90') >=0 or arg.find('ifort') >=0)):
+      return 1
+  return 0
+
+def chkcygwinlink():
+  if os.path.exists('/usr/bin/cygcheck.exe') and os.path.exists('/usr/bin/link.exe') and chkwinf90():
+      if '--ignore-cygwin-link' in sys.argv: return 0
+      print '==============================================================================='
+      print ' *** Cygwin /usr/bin/link detected! Compiles with CVF/Intel f90 can break!  **'
+      print ' *** To workarround do: "mv /usr/bin/link.exe /usr/bin/link-cygwin.exe"     **'
+      print ' *** Or to ignore this check, use configure option: --ignore-cygwin-link    **'
+      print '==============================================================================='
+      sys.exit(3)
+  return 0
+
 def chkbrokencygwin():
   if os.path.exists('/usr/bin/cygcheck.exe'):
     buf = os.popen('/usr/bin/cygcheck.exe -c cygwin').read()
   chkusingwindowspython()
   # Threads don't work for cygwin & python-2.4, 2.5 etc..
   chkcygwinpythonver()
+  chkcygwinlink()
 
   # Should be run from the toplevel
   configDir = os.path.abspath('config')

config/examples/aix5.1.0.0-64.py

-#!/usr/bin/env python
-
-# Notes:
-#   --with-batch=1 is required for IBM MPI. However all batch test values are specified.
-#   64 bit compilers/tools are specified for eg, with option: --with-cc='mpcc -q64'.
-
-configure_options = [
-  '--with-batch=1',
-  '--known-mpi-shared=0',
-  '--known-endian=big',
-  '--known-memcmp-ok',
-  '--known-sizeof-void-p=8',
-  '--known-sizeof-char=1',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=8',
-  '--known-sizeof-size_t=8',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=8',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-  '--with-cc=mpcc -q64',
-  '--with-fc=mpxlf -q64',
-  '--with-ar=/usr/bin/ar -X64'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/aix5.1.0.0.py

-#!/usr/bin/env python
-
-# Notes:
-#   --with-batch=1 is required for IBM MPI. However all batch test values are specified.
-
-configure_options = [
-  '--with-batch=1',
-  '--known-mpi-shared=0',
-  '--known-endian=big',
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=4',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=4',
-  '--known-sizeof-size_t=4',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/arch-aix64-dbg.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-cc=mpcc_r',
+  '--with-cxx=mpcxx_r',
+  '--with-fc=mpxlf_r',
+  '--with-blas-lapack-lib=-lessl -L/usr/common/usg/LAPACK/3.0 -llapack -lessl',
+  '--with-mpiexec=/usr/common/acts/PETSc/3.0.0/bin/mpiexec.poe',
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/arch-bgp-ibm-opt.py

+#!/usr/bin/env python
+#
+configure_options = [
+  '--with-cc=mpixlc_r',
+  '--with-cxx=mpixlcxx_r',
+  '--with-fc=mpixlf77_r -qnosave',
+
+  #'--with-mpi-dir=/bgsys/drivers/ppcfloor/comm',  # required by BLACS to get mpif.h
+  '--with-blas-lapack-lib=-L/soft/apps/LAPACK -llapack_bgp -L/soft/apps/LIBGOTO -lgoto',
+  '--with-x=0',
+
+  '--with-is-color-value-type=short',
+  '--with-shared=0',
+  
+  '-COPTFLAGS=-O3 -qarch=450d -qtune=450 -qmaxmem=-1',
+  '-CXXOPTFLAGS=-O3 -qarch=450d -qtune=450 -qmaxmem=-1',
+  '-FOPTFLAGS=-O3 -qarch=450d -qtune=450 -qmaxmem=-1',
+  '--with-debugging=0',
+
+  # autodetect on BGP not working?
+  '--with-fortran-kernels=1',
+
+  '--with-batch=1',
+  '--known-mpi-shared=0',
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=4',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=4',
+  '--known-sizeof-size_t=4',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+  '--known-level1-dcache-assoc=0',
+  '--known-level1-dcache-linesize=32',
+  '--known-level1-dcache-size=32768',
+
+  '--download-hypre=1',
+  '--download-plapack=1',
+  '--download-parmetis=1',
+  '--download-umfpack=1',
+  '--download-triangle=1',
+  '--download-spooles=1',
+  '--download-superlu=1',
+  '--download-superlu_dist=1',
+  '--download-blacs=1',
+  '--download-scalapack=1',
+  '--download-mumps=1',
+  '--download-spai=1',
+  '--download-prometheus=1',
+  '--download-chaco=1',
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)
+
+# Extra options used for testing locally
+test_options = []

config/examples/arch-cray-xt5-opt.py

+#!/usr/bin/env python
+
+# Do the following before running this configure script [hopper.nersc.gov]
+#
+# setenv XTPE_INFO_MESSAGE_OFF yes
+# module add acml
+
+configure_options = [
+  '--with-cc=cc',
+  '--with-cxx=CC',
+  '--with-fc=ftn',
+  '--with-cpp=cpp',
+  '--with-ld=cc',
+  
+  '--with-shared=0',
+  '--with-debugging=0',
+  '--COPTFLAGS=-fastsse -O3 -tp barcelona-64',
+  '--CXXOPTFLAGS=-fastsse -O3 -tp barcelona-64',
+  '--FOPTFLAGS=-fastsse -O3 -tp barcelona-64',
+  
+  '--with-clib-autodetect=0',
+  '--with-cxxlib-autodetect=0',
+  '--with-fortranlib-autodetect=0',
+  
+  '--with-mpi-dir=/opt/mpt/3.5.0/xt/mpich2-pgi',
+  '--with-mpiexec=/usr/common/acts/PETSc/3.0.0/bin/mpiexec.aprun',
+  
+  '--with-x=0',
+  '--with-blas-lapack-lib=-L/opt/acml/4.3.0/pgi64/lib -lacml -lacml_mv',
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/asterix/asterix32-sun.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-mpi-dir=/home/balay/soft/linux32/mpich2-1.1-sun',
+  '--with-shared=1',
+  '--with-debugging=0',
+  #'CFLAGS=-g',                 # workarround for optimzier bug with gltr.c
+  #'LIBS=/usr/lib/libm.a'       # workarround to configure convering '/usr/lib/libm.a' to '-lm'
+  ]
+  
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/asterix/asterix32.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-mpi-dir=/home/balay/soft/linux32/mpich2-1.1',
+  '--with-shared=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/asterix/asterix64-c89.py

+#!/usr/bin/env python
+
+# Test c89 std code compliance
+  
+configure_options = [
+  '--with-cc=gcc -std=c89',
+  '--with-fc=gfortran',
+  '--download-mpich=1',
+  '--download-mpich-pm=gforker',
+  '--download-hypre=1',
+  '--download-superlu-dist=1',
+  '--download-plapack=1',
+  '--with-shared=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/asterix/asterix64-openmpi.py

+#!/usr/bin/env python
+
+configure_options = [
+  #OpenMPI provides broken compilers and expects users to set LD_LIBRARY_PATH - before invoking them
+  'LIBS=-Wl,-rpath,/home/balay/soft/linux64/openmpi-1.3.2/lib',
+  '--with-mpi-dir=/home/balay/soft/linux64/openmpi-1.3.2',
+  '--with-clanguage=cxx',
+  '--with-debugging=0',
+  '--with-log=0',
+  '--with-shared=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/asterix/asterix64-sun.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-mpi-dir=/home/balay/soft/linux64/mpich2-1.1-sun',
+  '--with-shared=1',
+  '--with-debugging=0',
+  #'CFLAGS=-g',                 # workarround for optimzier bug with gltr.c
+  #'LIBS=/usr/lib/libm.a'       # workarround to configure convering '/usr/lib/libm.a' to '-lm'
+  ]
+  
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/asterix/asterix64.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-mpi-dir=/home/balay/soft/linux64/mpich2-1.1',
+  '--with-shared=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/asterix32-sun.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-mpi-dir=/home/balay/soft/linux32/mpich2-1.1-sun',
-  '--with-shared=1',
-  '--with-debugging=0',
-  #'CFLAGS=-g',                 # workarround for optimzier bug with gltr.c
-  #'LIBS=/usr/lib/libm.a'       # workarround to configure convering '/usr/lib/libm.a' to '-lm'
-  ]
-  
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/asterix32.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-mpi-dir=/home/balay/soft/linux32/mpich2-1.1',
-  '--with-shared=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/asterix64-c89.py

-#!/usr/bin/env python
-
-# Test c89 std code compliance
-  
-configure_options = [
-  '--with-cc=gcc -std=c89',
-  '--with-fc=gfortran',
-  '--download-mpich=1',
-  '--download-mpich-pm=gforker',
-  '--download-hypre=1',
-  '--download-superlu-dist=1',
-  '--download-plapack=1',
-  '--with-shared=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/asterix64-openmpi.py

-#!/usr/bin/env python
-
-configure_options = [
-  #OpenMPI provides broken compilers and expects users to set LD_LIBRARY_PATH - before invoking them
-  'LIBS=-Wl,-rpath,/home/balay/soft/linux64/openmpi-1.3.2/lib',
-  '--with-mpi-dir=/home/balay/soft/linux64/openmpi-1.3.2',
-  '--with-clanguage=cxx',
-  '--with-debugging=0',
-  '--with-log=0',
-  '--with-shared=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/asterix64-sun.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-mpi-dir=/home/balay/soft/linux64/mpich2-1.1-sun',
-  '--with-shared=1',
-  '--with-debugging=0',
-  #'CFLAGS=-g',                 # workarround for optimzier bug with gltr.c
-  #'LIBS=/usr/lib/libm.a'       # workarround to configure convering '/usr/lib/libm.a' to '-lm'
-  ]
-  
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/asterix64.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-mpi-dir=/home/balay/soft/linux64/mpich2-1.1',
-  '--with-shared=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/bgl-gnu-opt.py

-#!/usr/bin/env python
-#
-# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
-# workarround this problem.
-#
-# LIBS="-lc -lnss_files -lnss_dns -lresolv"
-#
-# Another workarround is to modify mpicc/mpif77 scripts and make them
-# link with the corresponding compilers, and these additional
-# libraries. The following tarball has the modified compiler scripts
-#
-# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
-#
-configure_options = [
-  '-LIBS=-lc -lc -lnss_files -lnss_dns -lresolv',
-  '--with-cc=mpicc',
-  '--with-cxx=mpicxx',
-  '--with-fc=mpif77',
-
-  '--download-f-blas-lapack=1',
-  '--with-shared=0',
-  
-  '-COPTFLAGS=-O3',
-  '-FOPTFLAGS=-O3',
-  '--with-debugging=0',
-  '--with-fortran-kernels=1',
-  '--with-x=0',
-  
-  '--with-batch=1',
-  '--known-mpi-shared=0',
-  '--known-endian=big',
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=4',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=4',
-  '--known-sizeof-size_t=4',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)
-
-# Extra options used for testing locally
-test_options = []
-    

config/examples/bgl-ibm-cxx-opt.py

-#!/usr/bin/env python
-#
-# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
-# workarround this problem.
-#
-# LIBS="-lc -lnss_files -lnss_dns -lresolv"
-#
-# Another workarround is to modify mpicc/mpif77 scripts and make them
-# link with the corresponding compilers, and these additional
-# libraries. The following tarball has the modified compiler scripts
-#
-# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
-#
-configure_options = [
-  '--with-cc=mpicc.ibm-8.0',
-  '--with-cxx=mpicxx.ibm-8.0',
-  '--with-fc=mpif77.ibm-10.1 -qnosave',
-  '--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys',  # required by BLACS to get mpif.h
-  '--with-clanguage=cxx',
-
-  '--with-is-color-value-type=short',
-  '--with-shared=0',
-  
-  '-COPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
-  '-CXXOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
-  '-FOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
-  '--with-debugging=0',
-
-  '--with-fortran-kernels=1'
-
-  '--with-batch=1',
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=4',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=4',
-  '--known-sizeof-size_t=4',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-
-  '--download-f-blas-lapack=1',
-  '--download-hypre=1',
-  '--download-spooles=1',
-  '--download-superlu=1',
-  '--download-parmetis=1',
-  '--download-superlu_dist=1',
-  '--download-blacs=1',
-  '--download-scalapack=1',
-  '--download-mumps=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)
-
-# Extra options used for testing locally
-test_options = []
-    

config/examples/bgl-ibm-debug.py

-#!/usr/bin/env python
-#
-# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
-# workarround this problem.
-#
-# LIBS="-lc -lnss_files -lnss_dns -lresolv"
-#
-# Another workarround is to modify mpicc/mpif77 scripts and make them
-# link with the corresponding compilers, and these additional
-# libraries. The following tarball has the modified compiler scripts
-#
-# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
-#
-configure_options = [
-  '--with-cc=mpicc.ibm-8.0',
-  '--with-cxx=mpicxx.ibm-8.0',
-  '--with-fc=mpif77.ibm-10.1 -qnosave',
-  '--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys',  # required by BLACS to get mpif.h
-
-
-  '--with-is-color-value-type=short',
-  '--with-shared=0',
-  
-  #'-COPTFLAGS=-O3 -qbgl -qarch=440 -qtune=440',
-  #'-CXXOPTFLAGS=-O3 -qbgl -qarch=440 -qtune=440',
-  #'-FOPTFLAGS=-O3 -qbgl -qarch=440 -qtune=440',
-  #'--with-debugging=0',
-
-  '--with-fortran-kernels=1'
-
-  '--with-batch=1',
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=4',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=4',
-  '--known-sizeof-size_t=4',  
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-
-  '--download-f-blas-lapack=1',
-  '--download-hypre=1',
-  '--download-spooles=1',
-  '--download-superlu=1',
-  '--download-parmetis=1',
-  '--download-superlu_dist=1',
-  '--download-blacs=1',
-  '--download-scalapack=1',
-  '--download-mumps=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)
-
-# Extra options used for testing locally
-test_options = []
-    

config/examples/bgl-ibm-opt.py

-#!/usr/bin/env python
-#
-# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
-# workarround this problem.
-#
-# LIBS="-lc -lnss_files -lnss_dns -lresolv"
-#
-# Another workarround is to modify mpicc/mpif77 scripts and make them
-# link with the corresponding compilers, and these additional
-# libraries. The following tarball has the modified compiler scripts
-#
-# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
-#
-configure_options = [
-  '--with-cc=mpicc.ibm-8.0',
-  '--with-cxx=mpicxx.ibm-8.0',
-  '--with-fc=mpif77.ibm-10.1 -qnosave',
-  '--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys',  # required by BLACS to get mpif.h
-
-  '--with-is-color-value-type=short',
-  '--with-shared=0',
-  
-  '-COPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
-  '-CXXOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
-  '-FOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
-  '--with-debugging=0',
-
-  '--with-fortran-kernels=1'
-
-  '--with-batch=1',
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=4',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=4',
-  '--known-sizeof-size_t=4',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-
-  '--download-f-blas-lapack=1',
-  '--download-hypre=1',
-  '--download-spooles=1',
-  '--download-superlu=1',
-  '--download-parmetis=1',
-  '--download-superlu_dist=1',
-  '--download-blacs=1',
-  '--download-scalapack=1',
-  '--download-mumps=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)
-
-# Extra options used for testing locally
-test_options = []
-    

config/examples/bgp-ibm-opt.py

-#!/usr/bin/env python
-#
-configure_options = [
-  '--with-cc=mpixlc_r',
-  '--with-cxx=mpixlcxx_r',
-  '--with-fc=mpixlf77_r -qnosave',
-
-  #'--with-mpi-dir=/bgsys/drivers/ppcfloor/comm',  # required by BLACS to get mpif.h
-  '--with-blas-lapack-lib=-L/soft/apps/LAPACK -llapack_bgp -L/soft/apps/LIBGOTO -lgoto',
-  '--with-x=0',
-
-  '--with-is-color-value-type=short',
-  '--with-shared=0',
-  
-  '-COPTFLAGS=-O3 -qarch=450d -qtune=450 -qmaxmem=-1',
-  '-CXXOPTFLAGS=-O3 -qarch=450d -qtune=450 -qmaxmem=-1',
-  '-FOPTFLAGS=-O3 -qarch=450d -qtune=450 -qmaxmem=-1',
-  '--with-debugging=0',
-
-  # autodetect on BGP not working?
-  '--with-fortran-kernels=1',
-
-  '--with-batch=1',
-  '--known-mpi-shared=0',
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=4',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=4',
-  '--known-sizeof-size_t=4',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-
-  '--download-hypre=1',
-  '--download-plapack=1',
-  '--download-parmetis=1',
-  '--download-umfpack=1',
-  '--download-triangle=1',
-  '--download-spooles=1',
-  '--download-superlu=1',
-  '--download-superlu_dist=1',
-  '--download-blacs=1',
-  '--download-scalapack=1',
-  '--download-mumps=1',
-  '--download-spai=1',
-  '--download-prometheus=1',
-  '--download-chaco=1',
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)
-
-# Extra options used for testing locally
-test_options = []

config/examples/cray-x1.py

-#!/usr/bin/env python
-
-# python on cray-x1 is broken - this script is run
-# on the linux-compile-node for x1 [robin]
-
-configure_options = [
-  '--with-cc=cc',
-  '--with-fc=ftn',
-  '--with-cxx=0',
-  '--with-shared=0',
-  '--with-debugging=0',
-  '-COPTFLAGS=-O3',
-  '-FOPTFLAGS=-O3',
-  
-  '--with-fortran-kernels=1',
-  '--with-blas-lapack-lib=sci',
-  
-  '--with-batch=1',
-  '--known-mpi-shared=0',
-  '--known-sizeof-void-p=8',
-  '--known-sizeof-char=1',
-  '--known-memcmp-ok',
-  '--known-sizeof-long=8',
-  '--known-sizeof-size_t=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-double=8',
-  '--known-sizeof-int=4',
-  '--known-endian=big',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-short=2'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/cray-xt3.py

-#!/usr/bin/env python
-
-# This script will generate configuration files for a Cray XT3/4 system 
-# running either Catamount or Compute Node Linux (CNL).  With either OS, 
-# some manual modifications must be made to petscconf.h.
-#
-# If running CNL, you must add PETSC_HAVE_F90_2PTR_ARG to petscconf.h 
-# after running configure.
-#
-# If running Catamount:
-# After running configure, remove the following flags from petscconf.h
-#
-# PETSC_HAVE_SYS_PROCFS_H
-# PETSC_HAVE_DLFCN_H
-# PETSC_HAVE_SYS_SOCKET_H
-# PETSC_HAVE_SYS_UTSNAME_H
-# PETSC_HAVE_PWD_H
-# PETSC_HAVE_GETWD
-# PETSC_HAVE_UNAME
-# PETSC_HAVE_GETHOSTNAME
-# PETSC_HAVE_GETDOMAINNAME
-# PETSC_HAVE_NETINET_IN_H
-# PETSC_HAVE_NETDB_H
-#
-###### On Cray XT4 the following additional flags need removal ########
-#
-# PETSC_USE_SOCKET_VIEWER
-# PETSC_HAVE_GETPWUID
-#
-# And add the following
-#
-# PETSC_HAVE_LSEEK
-# PETSC_HAVE_GETCWD
-# PETSC_HAVE_F90_2PTR_ARG
-
-# Configure script for building PETSc on the Cray XT3/4 ("Red Storm").
-configure_options = [
-  '--with-batch=1',
-  '--known-mpi-shared=0',
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=8',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=8',
-  '--known-sizeof-size_t=8',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-  '--known-sizeof-size_t=8',  
-  '--with-debugging=0',
-  'COPTFLAGS=-fastsse -O3 -Munroll=c:4 -tp k8-64',
-  'FOPTFLAGS=-fastsse -O3 -Munroll=c:4 -tp k8-64',
-  '--with-x=0',
-  '--with-mpi-dir=/opt/xt-mpt/default/mpich2-64/P2'
-  ]
-
-if __name__ == '__main__':
-  import os
-  import sys
-  sys.path.insert(0, os.path.abspath(os.path.join('config')))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/linux-gnu-ia64-intel.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-vendor-compilers=intel',
-  '--with-mpi-dir=/home/balay/soft/mpich2-1.0.4-intel', 
-  '--download-parmetis=1',
-  'DATAFILESPATH=/home/balay/datafiles',
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/linux-gnu-ia64.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-shared=1',
-  '--download-mpich=1',
-  'DATAFILESPATH=/home/balay/datafiles',
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/linux-gnu-intel.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-cc=icc',
-  '--with-fc=ifort',
-  '--with-cxx=icpc',
-  '--with-mpi-include=/home/petsc/soft/linux-rh73-intel/mpich-1.2.5.2/include',
-  '--with-mpi-lib=[/home/petsc/soft/linux-rh73-intel/mpich-1.2.5.2/lib/libmpich.a,libpmpich.a]',
-  '--with-mpiexec=/home/petsc/soft/linux-rh73-intel/mpich-1.2.5.2/bin/mpiexec',
-  '--with-blas-lapack-dir=/home/petsc/soft/linux-rh73-intel/mkl-52'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/linux-gnu-ml.py

-#!/usr/bin/env python
-
-# ******* Currently not tested **********
-
-configure_options = [
-  '--with-mpi-include=/home/petsc/soft/linux-rh73/mpich-1.2.4/include',
-  '--with-mpi-lib=[/home/petsc/soft/linux-rh73/mpich-1.2.4/lib/libpmpich.a,libmpich.a,libpmpich.a]',
-  '--with-mpiexec=mpiexec -all-local',
-  #'--with-cc=gcc',
-  '--with-ml-dir=/home/petsc/soft/linux-rh73/trilinos-4.0-ml'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/linux-gnu-superlu.py

-#!/usr/bin/env python
-
-# ******* Currently not tested **********
-
-configure_options = [
-  '--with-mpi-include=/home/petsc/soft/linux-rh73/mpich-1.2.4/include',
-  '--with-mpi-lib=[/home/petsc/soft/linux-rh73/mpich-1.2.4/lib/libmpich.a,/home/petsc/soft/linux-rh73/mpich-1.2.4/lib/libpmpich.a]',
-  '--with-mpiexec=mpiexec -all-local',
-  '--with-cc=gcc',
-  #dscpack
-  '--with-dscpack-dir=/home/petsc/soft/linux-rh73/DSCPACK1.0',
-  #spooles
-  '--with-spooles-dir=/home/petsc/soft/linux-rh73/spooles-2.2',
-  #superlu, superlu_dist
-  '--with-superlu-dir=/home/petsc/soft/linux-rh73/SuperLU_3.0',
-  '--with-superlu_dist-lib=/home/petsc/soft/linux-rh73/SuperLU_DIST_2.0-Jul_21_2004/superlu_linux.a',
-  #umfpack
-  '--with-umfpack-dir=/home/petsc/soft/linux-rh73/UMFPACKv4.3/UMFPACK'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/linux-rhAS3-gcc32-opt.py

-#!/usr/bin/env python
-
-# Build PETSc on jazz cluster [with gnu compilers]
-
-configure_options = [
-  '--with-shared=1',
-  '--with-mpi-dir=/soft/apps/packages/mpich-gm-1.2.6..13b-gcc-3.2.3-1',
-
-  '-COPTFLAGS=-O2 -march=pentium4 -mcpu=pentium4',
-  '-CXXOPTFLAGS=-O2 -march=pentium4 -mcpu=pentium4',
-  '-FOPTFLAGS=-O2 -march=pentium4 -mcpu=pentium4',
-  '--with-debugging=0',
-
-  '--with-lapack-lib=/soft/apps/packages/lapack-3.0/lib/lapack_LINUX.a',
-  '--with-blas-lib=/usr/lib/libblas.a'
-
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/linux-rhAS3-intel81-opt.py

-#!/usr/bin/env python
-
-# Build PETSc on jazz cluster, with intel compilers
-
-configure_options = [
-  '--with-shared=1',
-  '--with-is-color-value-type=short',
-  '--with-mpi-dir=/soft/apps/packages/mpich-gm-1.2.6..13b-intel-8.1-2',
-  '--with-blas-lapack-dir=/soft/com/packages/mkl_7.2/mkl72/lib/32',
-  
-  '-COPTFLAGS=-O3 -march=pentium4 -mcpu=pentium4',
-  '-FOPTFLAGS=-O3 -march=pentium4 -mcpu=pentium4',
-  '-CXXOPTFLAGS=-O3 -march=pentium4 -mcpu=pentium4',
-  '--with-debugging=0',
-
-  '--download-hypre=1',
-  '--download-spooles=1',
-  '--download-superlu=1',
-  '--download-parmetis=1',
-  '--download-superlu_dist=1',
-  '--download-blacs=1',
-  '--download-scalapack=1',
-  '--download-mumps=1'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/macosx-gnu-g95.py

-#!/usr/bin/env python
-
-configure_options = [
-  '--with-cc=gcc',
-  '--with-fc=g95',
-  '--with-python',
-  '--with-shared=1',
-  '--with-dynamic=1',
-  '--download-mpich',
-  '-download-mpich-pm=gforker'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/macosx-gnu.py

-#!/usr/bin/env python
-
-# using gfortran from http://gcc.gnu.org/wiki/GFortranBinariesMacOS on Mac OSX 10.4
-
-configure_options = [
-  'CC=gcc',
-  'FC=gfortran',
-  '--with-python',
-  '--with-shared=1',
-  '--with-dynamic=1',
-  '--download-mpich',
-  '-download-mpich-pm=gforker'
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)

config/examples/old/aix5.1.0.0-64.py

+#!/usr/bin/env python
+
+# Notes:
+#   --with-batch=1 is required for IBM MPI. However all batch test values are specified.
+#   64 bit compilers/tools are specified for eg, with option: --with-cc='mpcc -q64'.
+
+configure_options = [
+  '--with-batch=1',
+  '--known-mpi-shared=0',
+  '--known-endian=big',
+  '--known-memcmp-ok',
+  '--known-sizeof-void-p=8',
+  '--known-sizeof-char=1',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=8',
+  '--known-sizeof-size_t=8',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=8',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+  '--with-cc=mpcc -q64',
+  '--with-fc=mpxlf -q64',
+  '--with-ar=/usr/bin/ar -X64'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/aix5.1.0.0.py

+#!/usr/bin/env python
+
+# Notes:
+#   --with-batch=1 is required for IBM MPI. However all batch test values are specified.
+
+configure_options = [
+  '--with-batch=1',
+  '--known-mpi-shared=0',
+  '--known-endian=big',
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=4',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=4',
+  '--known-sizeof-size_t=4',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/bgl-gnu-opt.py

+#!/usr/bin/env python
+#
+# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
+# workarround this problem.
+#
+# LIBS="-lc -lnss_files -lnss_dns -lresolv"
+#
+# Another workarround is to modify mpicc/mpif77 scripts and make them
+# link with the corresponding compilers, and these additional
+# libraries. The following tarball has the modified compiler scripts
+#
+# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
+#
+configure_options = [
+  '-LIBS=-lc -lc -lnss_files -lnss_dns -lresolv',
+  '--with-cc=mpicc',
+  '--with-cxx=mpicxx',
+  '--with-fc=mpif77',
+
+  '--download-f-blas-lapack=1',
+  '--with-shared=0',
+  
+  '-COPTFLAGS=-O3',
+  '-FOPTFLAGS=-O3',
+  '--with-debugging=0',
+  '--with-fortran-kernels=1',
+  '--with-x=0',
+  
+  '--with-batch=1',
+  '--known-mpi-shared=0',
+  '--known-endian=big',
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=4',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=4',
+  '--known-sizeof-size_t=4',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)
+
+# Extra options used for testing locally
+test_options = []
+    

config/examples/old/bgl-ibm-cxx-opt.py

+#!/usr/bin/env python
+#
+# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
+# workarround this problem.
+#
+# LIBS="-lc -lnss_files -lnss_dns -lresolv"
+#
+# Another workarround is to modify mpicc/mpif77 scripts and make them
+# link with the corresponding compilers, and these additional
+# libraries. The following tarball has the modified compiler scripts
+#
+# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
+#
+configure_options = [
+  '--with-cc=mpicc.ibm-8.0',
+  '--with-cxx=mpicxx.ibm-8.0',
+  '--with-fc=mpif77.ibm-10.1 -qnosave',
+  '--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys',  # required by BLACS to get mpif.h
+  '--with-clanguage=cxx',
+
+  '--with-is-color-value-type=short',
+  '--with-shared=0',
+  
+  '-COPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
+  '-CXXOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
+  '-FOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
+  '--with-debugging=0',
+
+  '--with-fortran-kernels=1'
+
+  '--with-batch=1',
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=4',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=4',
+  '--known-sizeof-size_t=4',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+
+  '--download-f-blas-lapack=1',
+  '--download-hypre=1',
+  '--download-spooles=1',
+  '--download-superlu=1',
+  '--download-parmetis=1',
+  '--download-superlu_dist=1',
+  '--download-blacs=1',
+  '--download-scalapack=1',
+  '--download-mumps=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)
+
+# Extra options used for testing locally
+test_options = []
+    

config/examples/old/bgl-ibm-debug.py

+#!/usr/bin/env python
+#
+# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
+# workarround this problem.
+#
+# LIBS="-lc -lnss_files -lnss_dns -lresolv"
+#
+# Another workarround is to modify mpicc/mpif77 scripts and make them
+# link with the corresponding compilers, and these additional
+# libraries. The following tarball has the modified compiler scripts
+#
+# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
+#
+configure_options = [
+  '--with-cc=mpicc.ibm-8.0',
+  '--with-cxx=mpicxx.ibm-8.0',
+  '--with-fc=mpif77.ibm-10.1 -qnosave',
+  '--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys',  # required by BLACS to get mpif.h
+
+
+  '--with-is-color-value-type=short',
+  '--with-shared=0',
+  
+  #'-COPTFLAGS=-O3 -qbgl -qarch=440 -qtune=440',
+  #'-CXXOPTFLAGS=-O3 -qbgl -qarch=440 -qtune=440',
+  #'-FOPTFLAGS=-O3 -qbgl -qarch=440 -qtune=440',
+  #'--with-debugging=0',
+
+  '--with-fortran-kernels=1'
+
+  '--with-batch=1',
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=4',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=4',
+  '--known-sizeof-size_t=4',  
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+
+  '--download-f-blas-lapack=1',
+  '--download-hypre=1',
+  '--download-spooles=1',
+  '--download-superlu=1',
+  '--download-parmetis=1',
+  '--download-superlu_dist=1',
+  '--download-blacs=1',
+  '--download-scalapack=1',
+  '--download-mumps=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)
+
+# Extra options used for testing locally
+test_options = []
+    

config/examples/old/bgl-ibm-opt.py

+#!/usr/bin/env python
+#
+# BGL has broken 'libc' dependencies. The option 'LIBS' is used to
+# workarround this problem.
+#
+# LIBS="-lc -lnss_files -lnss_dns -lresolv"
+#
+# Another workarround is to modify mpicc/mpif77 scripts and make them
+# link with the corresponding compilers, and these additional
+# libraries. The following tarball has the modified compiler scripts
+#
+# http://ftp.mcs.anl.gov/pub/petsc/tmp/petsc-bgl-tools.tar.gz 
+#
+configure_options = [
+  '--with-cc=mpicc.ibm-8.0',
+  '--with-cxx=mpicxx.ibm-8.0',
+  '--with-fc=mpif77.ibm-10.1 -qnosave',
+  '--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys',  # required by BLACS to get mpif.h
+
+  '--with-is-color-value-type=short',
+  '--with-shared=0',
+  
+  '-COPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
+  '-CXXOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
+  '-FOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
+  '--with-debugging=0',
+
+  '--with-fortran-kernels=1'
+
+  '--with-batch=1',
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=4',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=4',
+  '--known-sizeof-size_t=4',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+
+  '--download-f-blas-lapack=1',
+  '--download-hypre=1',
+  '--download-spooles=1',
+  '--download-superlu=1',
+  '--download-parmetis=1',
+  '--download-superlu_dist=1',
+  '--download-blacs=1',
+  '--download-scalapack=1',
+  '--download-mumps=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)
+
+# Extra options used for testing locally
+test_options = []
+    

config/examples/old/cray-x1.py

+#!/usr/bin/env python
+
+# python on cray-x1 is broken - this script is run
+# on the linux-compile-node for x1 [robin]
+
+configure_options = [
+  '--with-cc=cc',
+  '--with-fc=ftn',
+  '--with-cxx=0',
+  '--with-shared=0',
+  '--with-debugging=0',
+  '-COPTFLAGS=-O3',
+  '-FOPTFLAGS=-O3',
+  
+  '--with-fortran-kernels=1',
+  '--with-blas-lapack-lib=sci',
+  
+  '--with-batch=1',
+  '--known-mpi-shared=0',
+  '--known-sizeof-void-p=8',
+  '--known-sizeof-char=1',
+  '--known-memcmp-ok',
+  '--known-sizeof-long=8',
+  '--known-sizeof-size_t=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-double=8',
+  '--known-sizeof-int=4',
+  '--known-endian=big',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-short=2'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/cray-xt3.py

+#!/usr/bin/env python
+
+# This script will generate configuration files for a Cray XT3/4 system 
+# running either Catamount or Compute Node Linux (CNL).  With either OS, 
+# some manual modifications must be made to petscconf.h.
+#
+# If running CNL, you must add PETSC_HAVE_F90_2PTR_ARG to petscconf.h 
+# after running configure.
+#
+# If running Catamount:
+# After running configure, remove the following flags from petscconf.h
+#
+# PETSC_HAVE_SYS_PROCFS_H
+# PETSC_HAVE_DLFCN_H
+# PETSC_HAVE_SYS_SOCKET_H
+# PETSC_HAVE_SYS_UTSNAME_H
+# PETSC_HAVE_PWD_H
+# PETSC_HAVE_GETWD
+# PETSC_HAVE_UNAME
+# PETSC_HAVE_GETHOSTNAME
+# PETSC_HAVE_GETDOMAINNAME
+# PETSC_HAVE_NETINET_IN_H
+# PETSC_HAVE_NETDB_H
+#
+###### On Cray XT4 the following additional flags need removal ########
+#
+# PETSC_USE_SOCKET_VIEWER
+# PETSC_HAVE_GETPWUID
+#
+# And add the following
+#
+# PETSC_HAVE_LSEEK
+# PETSC_HAVE_GETCWD
+# PETSC_HAVE_F90_2PTR_ARG
+
+# Configure script for building PETSc on the Cray XT3/4 ("Red Storm").
+configure_options = [
+  '--with-batch=1',
+  '--known-mpi-shared=0',
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=8',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=8',
+  '--known-sizeof-size_t=8',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+  '--known-sizeof-size_t=8',  
+  '--with-debugging=0',
+  'COPTFLAGS=-fastsse -O3 -Munroll=c:4 -tp k8-64',
+  'FOPTFLAGS=-fastsse -O3 -Munroll=c:4 -tp k8-64',
+  '--with-x=0',
+  '--with-mpi-dir=/opt/xt-mpt/default/mpich2-64/P2'
+  ]
+
+if __name__ == '__main__':
+  import os
+  import sys
+  sys.path.insert(0, os.path.abspath(os.path.join('config')))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/linux-gnu-ia64-intel.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-vendor-compilers=intel',
+  '--with-mpi-dir=/home/balay/soft/mpich2-1.0.4-intel', 
+  '--download-parmetis=1',
+  'DATAFILESPATH=/home/balay/datafiles',
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/linux-gnu-ia64.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-shared=1',
+  '--download-mpich=1',
+  'DATAFILESPATH=/home/balay/datafiles',
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/linux-gnu-intel.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-cc=icc',
+  '--with-fc=ifort',
+  '--with-cxx=icpc',
+  '--with-mpi-include=/home/petsc/soft/linux-rh73-intel/mpich-1.2.5.2/include',
+  '--with-mpi-lib=[/home/petsc/soft/linux-rh73-intel/mpich-1.2.5.2/lib/libmpich.a,libpmpich.a]',
+  '--with-mpiexec=/home/petsc/soft/linux-rh73-intel/mpich-1.2.5.2/bin/mpiexec',
+  '--with-blas-lapack-dir=/home/petsc/soft/linux-rh73-intel/mkl-52'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/linux-gnu-ml.py

+#!/usr/bin/env python
+
+# ******* Currently not tested **********
+
+configure_options = [
+  '--with-mpi-include=/home/petsc/soft/linux-rh73/mpich-1.2.4/include',
+  '--with-mpi-lib=[/home/petsc/soft/linux-rh73/mpich-1.2.4/lib/libpmpich.a,libmpich.a,libpmpich.a]',
+  '--with-mpiexec=mpiexec -all-local',
+  #'--with-cc=gcc',
+  '--with-ml-dir=/home/petsc/soft/linux-rh73/trilinos-4.0-ml'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/linux-gnu-superlu.py

+#!/usr/bin/env python
+
+# ******* Currently not tested **********
+
+configure_options = [
+  '--with-mpi-include=/home/petsc/soft/linux-rh73/mpich-1.2.4/include',
+  '--with-mpi-lib=[/home/petsc/soft/linux-rh73/mpich-1.2.4/lib/libmpich.a,/home/petsc/soft/linux-rh73/mpich-1.2.4/lib/libpmpich.a]',
+  '--with-mpiexec=mpiexec -all-local',
+  '--with-cc=gcc',
+  #dscpack
+  '--with-dscpack-dir=/home/petsc/soft/linux-rh73/DSCPACK1.0',
+  #spooles
+  '--with-spooles-dir=/home/petsc/soft/linux-rh73/spooles-2.2',
+  #superlu, superlu_dist
+  '--with-superlu-dir=/home/petsc/soft/linux-rh73/SuperLU_3.0',
+  '--with-superlu_dist-lib=/home/petsc/soft/linux-rh73/SuperLU_DIST_2.0-Jul_21_2004/superlu_linux.a',
+  #umfpack
+  '--with-umfpack-dir=/home/petsc/soft/linux-rh73/UMFPACKv4.3/UMFPACK'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/linux-rhAS3-gcc32-opt.py

+#!/usr/bin/env python
+
+# Build PETSc on jazz cluster [with gnu compilers]
+
+configure_options = [
+  '--with-shared=1',
+  '--with-mpi-dir=/soft/apps/packages/mpich-gm-1.2.6..13b-gcc-3.2.3-1',
+
+  '-COPTFLAGS=-O2 -march=pentium4 -mcpu=pentium4',
+  '-CXXOPTFLAGS=-O2 -march=pentium4 -mcpu=pentium4',
+  '-FOPTFLAGS=-O2 -march=pentium4 -mcpu=pentium4',
+  '--with-debugging=0',
+
+  '--with-lapack-lib=/soft/apps/packages/lapack-3.0/lib/lapack_LINUX.a',
+  '--with-blas-lib=/usr/lib/libblas.a'
+
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/linux-rhAS3-intel81-opt.py

+#!/usr/bin/env python
+
+# Build PETSc on jazz cluster, with intel compilers
+
+configure_options = [
+  '--with-shared=1',
+  '--with-is-color-value-type=short',
+  '--with-mpi-dir=/soft/apps/packages/mpich-gm-1.2.6..13b-intel-8.1-2',
+  '--with-blas-lapack-dir=/soft/com/packages/mkl_7.2/mkl72/lib/32',
+  
+  '-COPTFLAGS=-O3 -march=pentium4 -mcpu=pentium4',
+  '-FOPTFLAGS=-O3 -march=pentium4 -mcpu=pentium4',
+  '-CXXOPTFLAGS=-O3 -march=pentium4 -mcpu=pentium4',
+  '--with-debugging=0',
+
+  '--download-hypre=1',
+  '--download-spooles=1',
+  '--download-superlu=1',
+  '--download-parmetis=1',
+  '--download-superlu_dist=1',
+  '--download-blacs=1',
+  '--download-scalapack=1',
+  '--download-mumps=1'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/macosx-gnu-g95.py

+#!/usr/bin/env python
+
+configure_options = [
+  '--with-cc=gcc',
+  '--with-fc=g95',
+  '--with-python',
+  '--with-shared=1',
+  '--with-dynamic=1',
+  '--download-mpich',
+  '-download-mpich-pm=gforker'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/macosx-gnu.py

+#!/usr/bin/env python
+
+# using gfortran from http://gcc.gnu.org/wiki/GFortranBinariesMacOS on Mac OSX 10.4
+
+configure_options = [
+  'CC=gcc',
+  'FC=gfortran',
+  '--with-python',
+  '--with-shared=1',
+  '--with-dynamic=1',
+  '--download-mpich',
+  '-download-mpich-pm=gforker'
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)

config/examples/old/sicortex.py

+#!/usr/bin/env python
+#
+# use 'scmpicc --pathscale' etc on cross-compile node
+configure_options = [
+  '--with-cc=mpicc',
+  '--with-cxx=mpicxx',
+  '--with-fc=mpif90',
+  '--LIBS=-lpathfstart -lpathfortran -lpathfstart',
+  '--with-fortranlib-autodetect=0',
+  #
+  # For link errors of type: "relocation truncated to fit: R_MIPS_GPREL16"
+  # -G0 option would be needed, along with fblaslapack
+  # '--download-f-blas-lapack=1',
+  #
+  # Recommend: -Ofast -IPA -ffast-math -CG:locs_best=1
+  '--with-debugging=0',
+  'COPTFLAGS=-O3 -ffast-math',
+  'FOPTFLAGS=-O3 -ffast-math',
+  'CXXOPTFLAGS=-O3 -ffast-math',
+
+  '--with-batch=1',
+  '--known-mpi-shared=0',
+
+  '--known-memcmp-ok',
+  '--known-sizeof-char=1',
+  '--known-sizeof-void-p=8',
+  '--known-sizeof-short=2',
+  '--known-sizeof-int=4',
+  '--known-sizeof-long=8',
+  '--known-sizeof-size_t=8',
+  '--known-sizeof-long-long=8',
+  '--known-sizeof-float=4',
+  '--known-sizeof-double=8',
+  '--known-bits-per-byte=8',
+  '--known-sizeof-MPI_Comm=4',
+  '--known-sizeof-MPI_Fint=4',
+  '--known-mpi-long-double=1',
+
+  '--download-plapack=1',
+  '--download-parmetis=1',
+  '--download-umfpack=1',
+  '--download-triangle=1',
+  '--download-spooles=1',
+  '--download-superlu=1',
+  '--download-superlu_dist=1',
+  '--download-blacs=1',
+  '--download-scalapack=1',
+  '--download-mumps=1',
+  '--download-spai=1',
+  '--download-chaco=1',
+  '--download-prometheus=1',
+
+  # PETSc configure cannot cross-compile the following packages
+  #'--download-mpe=1',
+  # '--download-fftw',
+  #'--download-hdf5=1',
+  #'--download-sundials=1',
+  #'--download-hypre=1',
+
+  ]
+
+if __name__ == '__main__':
+  import sys,os
+  sys.path.insert(0,os.path.abspath('config'))
+  import configure
+  configure.petsc_configure(configure_options)
+
+# Extra options used for testing locally
+test_options = []
+    

config/examples/sicortex.py

-#!/usr/bin/env python
-#
-# use 'scmpicc --pathscale' etc on cross-compile node
-configure_options = [
-  '--with-cc=mpicc',
-  '--with-cxx=mpicxx',
-  '--with-fc=mpif90',
-  '--LIBS=-lpathfstart -lpathfortran -lpathfstart',
-  '--with-fortranlib-autodetect=0',
-  #
-  # For link errors of type: "relocation truncated to fit: R_MIPS_GPREL16"
-  # -G0 option would be needed, along with fblaslapack
-  # '--download-f-blas-lapack=1',
-  #
-  # Recommend: -Ofast -IPA -ffast-math -CG:locs_best=1
-  '--with-debugging=0',
-  'COPTFLAGS=-O3 -ffast-math',
-  'FOPTFLAGS=-O3 -ffast-math',
-  'CXXOPTFLAGS=-O3 -ffast-math',
-
-  '--with-batch=1',
-  '--known-mpi-shared=0',
-
-  '--known-memcmp-ok',
-  '--known-sizeof-char=1',
-  '--known-sizeof-void-p=8',
-  '--known-sizeof-short=2',
-  '--known-sizeof-int=4',
-  '--known-sizeof-long=8',
-  '--known-sizeof-size_t=8',
-  '--known-sizeof-long-long=8',
-  '--known-sizeof-float=4',
-  '--known-sizeof-double=8',
-  '--known-bits-per-byte=8',
-  '--known-sizeof-MPI_Comm=4',
-  '--known-sizeof-MPI_Fint=4',
-  '--known-mpi-long-double=1',
-
-  '--download-plapack=1',
-  '--download-parmetis=1',
-  '--download-umfpack=1',
-  '--download-triangle=1',
-  '--download-spooles=1',
-  '--download-superlu=1',
-  '--download-superlu_dist=1',
-  '--download-blacs=1',
-  '--download-scalapack=1',
-  '--download-mumps=1',
-  '--download-spai=1',
-  '--download-chaco=1',
-  '--download-prometheus=1',
-
-  # PETSc configure cannot cross-compile the following packages
-  #'--download-mpe=1',
-  # '--download-fftw',
-  #'--download-hdf5=1',
-  #'--download-sundials=1',
-  #'--download-hypre=1',
-
-  ]
-
-if __name__ == '__main__':
-  import sys,os
-  sys.path.insert(0,os.path.abspath('config'))
-  import configure
-  configure.petsc_configure(configure_options)
-
-# Extra options used for testing locally
-test_options = []
-    

include/petscblaslapack_stdcall.h

 #  define LAPACKgetrs_(a,b,c,d,e,f,g,h,i)           SGETRS((a),1,(b),(c),(d),(e),(f),(g),(h),(i))
 EXTERN void PETSC_STDCALL                           SGETRS(const char*,int,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*);
 #  define BLASgemv_(a,b,c,d,e,f,g,h,i,j,k)          SGEMV((a),1,(b),(c),(d),(e),(f),(g),(h),(i),(j),(k))
-EXTERN void PETSC_STDCALL                           SGEMV(const char*,int,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar *,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*);
+EXTERN void PETSC_STDCALL                           SGEMV(const char*,int,PetscBLASInt*,PetscBLASInt*,PetscScalar*,const PetscScalar*,PetscBLASInt*,PetscScalar *,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*);
 #  define LAPACKgeev_(a,b,c,d,e,f,g,h,i,j,k,l,m,n)  SGEEV((a),1,(b),1,(c),(d),(e),(f),(g),(h),(i),(j),(k),(l),(m),(n))
 EXTERN void PETSC_STDCALL                           SGEEV(const char*,int,const char*,int,PetscBLASInt*,PetscScalar *,PetscBLASInt*,PetscReal*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*);
 #  define LAPACKgesvd_(a,b,c,d,e,f,g,h,i,j,k,l,m,n) SGESVD((a),1,(b),1,(c),(d),(e),(f),(g),(h),(i),(j),(k),(l),(m),(n))
 #  define LAPACKpotrs_(a,b,c,d,e,f,g,h)             DPOTRS((a),1,(b),(c),(d),(e),(f),(g),(h))
 EXTERN void PETSC_STDCALL                           DPOTRS(const char*,int,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*);
 #  define BLASgemv_(a,b,c,d,e,f,g,h,i,j,k)          DGEMV((a),1,(b),(c),(d),(e),(f),(g),(h),(i),(j),(k))
-EXTERN void PETSC_STDCALL                           DGEMV(const char*,int,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar *,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*);
+EXTERN void PETSC_STDCALL                           DGEMV(const char*,int,PetscBLASInt*,PetscBLASInt*,PetscScalar*,const PetscScalar*,PetscBLASInt*,PetscScalar *,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*);
 #  define LAPACKgetrs_(a,b,c,d,e,f,g,h,i)           DGETRS((a),1,(b),(c),(d),(e),(f),(g),(h),(i))
 EXTERN void PETSC_STDCALL                           DGETRS(const char*,int,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*);
 #  define BLASgemm_(a,b,c,d,e,f,g,h,i,j,k,l,m)      DGEMM((a),1,(b),1,(c),(d),(e),(f),(g),(h),(i),(j),(k),(l),(m))

include/petscts.h

 typedef PetscErrorCode (*TSIJacobian)(TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*,void*);
 EXTERN PetscErrorCode PETSCTS_DLLEXPORT  TSSetIFunction(TS,TSIFunction,void*);