I am attaching a very basic module file for reference. One would need to update petsc_dir and petsc_arch upon deploying these, or perhaps configure can do it.
I actually use this to easily switch between builds and debug / optimized versions Blaise wrote: > On Thu, 24 Jan 2013, Matthew Knepley wrote: > >>> We do support this install with DESTDIR. It might have rough edges - >>> but its supporsed to work the same way any other package that supports >>> it. >>> >>> One difference though is - since we also suppor the alternate >>> orngaization [default] for inplace install with PETSC_ARCH - one has >>> to use this PETSC_ARCH during the prefix build process aswell. [but >>> then PETSC_ARCH is nolonger used/needed after that] >>> >>> i.e >>> configure >>> --prefix=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch1 >>> PETSC_ARCH=build1 >>> make PETSC_ARCH=build1 all >>> make install PETSC_ARCH=build1 install DESTDIR=/tmp/dest1 >>> <package up from DESTDIR, and install as root:> >>> Now user does: >>> make PETSC_DIR=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch1 ex1 >>> >>> configure [different options] >>> --prefix=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch2 >>> PETSC_ARCH=build2 >>> make PETSC_ARCH=build2 all >>> make install PETSC_ARCH=build2 install DESTDIR=/tmp/dest2 >>> <package up from DESTDIR, and install as root:> >>> Now user does: >>> make PETSC_DIR=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch2 ex1 >>> >> >> Satish, would you mind putting this little blurb on the installation page >> in the section about >> using prefix? I could not find this anywhere in our documentation. > > pushed > https://bitbucket.org/petsc/petsc-3.3/commits/74a42cc43dcfbd1850b7689385b6f1b5 > [and updated website with it] > > Satish > -- Department of Mathematics and Center for Computation & Technology Louisiana State University, Baton Rouge, LA 70803, USA Tel. +1 (225) 578 1612, Fax +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130124/1c1710b1/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3.3 Type: application/octet-stream Size: 493 bytes Desc: 3.3 URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130124/1c1710b1/attachment.obj>