Automatically select appropriate Velociraptor library for MPI and non-MPI version of SWIFT
As far as I see, when compiling SWIFT with the inlined Velociraptor (VR) interface (i.e. --with-velociraptor=...
), only the MPI or non-MPI version of the code is currently built consistently, depending on whether the specified Velociraptor library was compiled with or without MPI support (i.e. without or with -DVR_MPI=OFF
). To obtain working MPI and non-MPI versions of SWIFT+VR, the code therefore needs to be compiled twice: first, with the --with-velociraptor
flag pointing to the MPI version of VR, and then a second time with --with-velociraptor
pointing to an MPI-disabled version of VR and with --disable-mpi
added so as to not overwrite the previously generated swift_mpi
executable.
This works perfectly fine, but I was wondering whether there might be a way to streamline the compilation in this case -- e.g. by providing two different VR libraries in the specified directory so that the MPI and non-MPI versions of SWIFT pick up the appropriate VR library in one go?