[mod3 (homebrewed)]$ module purge
[mod3 (homebrewed)]$ module load pgi/18.4
[mod3 (homebrewed)]$ module load openmpi/3.1
[mod3 (homebrewed)]$ module load foo/1.1
[mod3 (homebrewed)]$ module list
Currently Loaded Modulefiles:
  1) pgi/18.4      2) openmpi/3.1   3) foo/1.1
[mod3 (homebrewed)]$ foo
foo 1.1 (pgi/18.4, openmpi/3.1)
[mod3 (homebrewed)]$ module switch pgi intel/2018
[mod3 (homebrewed)]$ module list
Currently Loaded Modulefiles:
  1) intel/2018    2) openmpi/3.1   3) foo/1.1
[mod3 (homebrewed)]$ foo
foo 1.1 (pgi/18.4, openmpi/3.1)
[mod3 (homebrewed)]$ mpirun
mpirun (openmpi/3.1, pgi/18.4)
[mod3 (homebrewed)]$ module purge
[mod3 (homebrewed)]$ module load intel/2019
[mod3 (homebrewed)]$ module load foo
[mod3 (homebrewed)]$ module list
Currently Loaded Modulefiles:
  1) intel/2019   2) foo/2.4
[mod3 (homebrewed)]$ foo
foo 2.4 (intel/2019, nompi)
[mod3 (homebrewed)]$ module load openmpi
[mod3 (homebrewed)]$ module list
Currently Loaded Modulefiles:
  1) intel/2019    2) foo/2.4       3) openmpi/4.0
[mod3 (homebrewed)]$ foo
foo 2.4 (intel/2019, nompi)
