geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
228 stars 237 forks source link

document how to use spack #4500

Open tjhei opened 2 years ago

tjhei commented 2 years ago

I thought we have instructions on how to use spack to install ASPECT, but I couldn't find them. Either the wiki, readme, or the manual would be good.

Specifically, I am always forget how to use an existing MPI (manually edit ~/.spack/packages.yaml, sigh) and how to specify a minimal configuration of deal.II without every optional dependency.

tjhei commented 2 years ago

something like this might work if your system MPI is mpich@3.3.2:

spack install aspect ^ mpich@3.3.2 ^ dealii~petsc~arborx~gmsh~oce~assimp~ginkgo~symengine~scalapack~sundials~arpack~adol-c~metis~gsl~cgal

@gassmoeller do you have any other hints?

tjhei commented 2 years ago

Using system MPI (here with using mpich). Create ~/.spack/packages.yaml with:

packages:
   mpich:
     externals:
     - spec: mpich@3.3a2 %gcc@7.5.0
       prefix: /usr/
   mpi:
     buildable: false

Also remember spack compiler find and spack compilers.

bangerth commented 1 year ago

Is this still something anyone wants to address?

tjhei commented 1 year ago

note: sundials need to be added to the line above for #5367