bendudson / hermes-3

Multifluid drift reduced fluid model
GNU General Public License v3.0
36 stars 16 forks source link

Need better compilation process & documentation #130

Open mikekryjak opened 1 year ago

mikekryjak commented 1 year ago

The "default" Hermes-3 compilation procedure loads BOUT++ as an external module, but it does not download and compile PETSc, and no guidance on this is provided in the documentation. I think we need to implement scripts to get PETSc in the correct way (as per @johnomotani's scripts and my version of them). This is especially important since the example cases are now using PETSc solvers by default.

@bendudson @johnomotani is the latter possible?

bendudson commented 8 months ago

I think the easiest way to accomplish this is with a Spack package. PETSc has a package, including MPI and hypre variants. We could perhaps add hermes-3 to the official package repo, but for testing I've made our own BOUT++ repo: https://github.com/boutproject/BOUT-spack More documentation needed of course...

mikekryjak commented 1 month ago

Another user just spent quite a bit of time being confused about how to install PETSc with Hypre capability. I think we should update this page in the docs (https://hermes3.readthedocs.io/en/latest/getting_started.html#building-with-petsc) with: