Skip to content

Commit

Permalink
Merge pull request #2856 from boegel/20230108154130_new_pr_namd
Browse files Browse the repository at this point in the history
make NAMD easyblock aware of (pre)testopts
  • Loading branch information
bartoldeman authored Jan 18, 2023
2 parents c93dda1 + fdc069a commit f1124c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easybuild/easyblocks/n/namd.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,12 @@ def test_step(self):
ppn = ''
if self.toolchain.options.get('openmp', False):
ppn = '+ppn 2'
cmd = "%(namd)s %(ppn)s %(testdir)s" % {
cmd = "%(pretestopts)s %(namd)s %(ppn)s %(testopts)s %(testdir)s" % {
'namd': namdcmd,
'ppn': ppn,
'pretestopts': self.cfg['pretestopts'],
'testdir': os.path.join(self.cfg['start_dir'], self.namd_arch, 'src', 'alanin'),
'testopts': self.cfg['testopts'],
}
out, ec = run_cmd(cmd, simple=False)
if ec == 0:
Expand Down

0 comments on commit f1124c6

Please sign in to comment.