diff --git a/easybuild/easyblocks/g/gromacs.py b/easybuild/easyblocks/g/gromacs.py index 343a63f353..67eec7b826 100644 --- a/easybuild/easyblocks/g/gromacs.py +++ b/easybuild/easyblocks/g/gromacs.py @@ -67,6 +67,7 @@ def extra_options(): 'mpiexec': ['mpirun', "MPI executable to use when running tests", CUSTOM], 'mpiexec_numproc_flag': ['-np', "Flag to introduce the number of MPI tasks when running tests", CUSTOM], 'mpi_numprocs': [0, "Number of MPI tasks to use when running tests", CUSTOM], + 'ignore_plumed_version_check': [False, "Ignore the version compatibility check for PLUMED", CUSTOM], }) extra_vars['separate_build_dir'][0] = True return extra_vars @@ -202,8 +203,12 @@ def configure_step(self): (out, _) = run_cmd("plumed-patch -l", log_all=True, simple=False) if not re.search(engine, out): - raise EasyBuildError("There is no support in PLUMED version %s for GROMACS %s: %s", - get_software_version('PLUMED'), self.version, out) + plumed_ver = get_software_version('PLUMED') + msg = "There is no support in PLUMED version %s for GROMACS %s: %s" % (plumed_ver, self.version, out) + if self.cfg['ignore_plumed_version_check']: + self.log.warning(msg) + else: + raise EasyBuildError(msg) # PLUMED patching must be done at different stages depending on # version of GROMACS. Just prepare first part of cmd here