Skip to content

Commit

Permalink
Merge pull request #2621 from smoors/20211116153423_new_pr_gromacs
Browse files Browse the repository at this point in the history
add option to ignore PLUMED version check for GROMACS
  • Loading branch information
boegel authored Nov 25, 2021
2 parents f15070e + ecee423 commit 89eab19
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions easybuild/easyblocks/g/gromacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89eab19

Please sign in to comment.