On 30 Oct 2018, at 16:30, Matthew Knepley <knepley@gmail.com> wrote:
On Fri, Oct 26, 2018 at 11:26 AM Matthew Knepley <knepley@gmail.com> wrote: Dear Firedrake,
Long-time listener, first time mailer.
I would like to build using my own repository for PETSc. I am reading this page:
https://www.firedrakeproject.org/download.html
but it is not clear to me how to tell the installer to use mine, rather than install its own. Do I just point to it using PETSC_DIR?
Its not going to install itself by osmosis.
Aha, you're not subscribed and people don't automatically CC. You would normally get a bounce notification asking you to subscribe, but I think someone in the past (probably me) added you to a list of addresses that get accepted anyway. Answers from David:
Nearly: there’s a small piece of idiot-proofing to prevent the unwary new user from accidentally using the wrong PETSc. You need to pass –honour-petsc-dir (note UK spelling) to firedrake-install
You also need to check the install script to make sure your petsc has our minimal set of options. I apologise that you have to RTFS for that. From memory, the absolute minimum is that you need –download-hdf5 and –download-eigen
Nicolas said:
You need to define PETSC_DIR and PETSC_ARCH, then run the install script with the --honour-petsc-dir option.
If you call the script with --help, you may also discover a couple of options you might want to use (or not) such as --disable-ssh or --no-package-manager
And Miklos pointed out:
You don’t actually need to read the script,
firedrake-install --show-petsc-configure-options
tells you which options the Firedrake install script passes to PETSc’s configure script. It is normally safe add things, but removing things may result in harmless test failures (e.g. some solver packages), or in broken Firedrake functionality.
This last option doesn't exit the installer after showing them, so it's not quite as useful as it seems. FWIW, we by default build with: --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --with-zlib --download-netcdf --download-hdf5 --download-pnetcdf --download-exodusii --with-debugging=0 --with-shared-libraries=1 Cheers, Lawrence