You can do
export PATH=$(spack location -i mpich)/bin:$PATH
to prepend the path of mpich to your PATH. This is not done automatically. Alternatively, you could also run, as root:
cd /usr/local
spack view add . mpich
which aliases all mpi commands to /usr/local/bin
I usually do this in a custom docker image, derived from the official deal.II image, which I then upload to my personal docker hub, and use for my CI needs.
Best,
Luca.
---
FROM dealii/dealii:v9.1.1-gcc-mpi-fulldepsspack-debugrelease
MAINTAINER
luca....@gmail.com
USER root
RUN spack install googletest ninja \
&& spack clean -a \
&& cd /usr/local && spack view add . googletest ninja mpich
RUN chmod 777 /home/$USER
USER $USER
> --
> The deal.II project is located at
http://www.dealii.org/
> For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
dealii+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/aa77f722-f3cb-4ae8-a46c-7c6e815e0338%40googlegroups.com.