installing two instances of OpenMC

Hi,

I am using OpenMC which I installed without MPI option. Now I would like to install another instance of OpenMC with MPI option. I would like to preserve the first installation and name the mpi version differently, such as ‘openmcmpi’.

Is it possible to do that?

Thanks!

Assuming you are building from source, what you can do is use a different CMAKE_INSTALL_PREFIX for the MPI version at the time you’re running cmake. For example,

export FC=mpif90
export CC=mpicc
export CXX=mpicxx
cmake -DCMAKE_INSTALL_PREFIX=/opt/openmc-mpi/ …

The executable will still be named ‘openmc’ but it will exist in a different directory.

Best regards,
Paul