We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3170570 + 13bcc5a commit 07459a0Copy full SHA for 07459a0
cscs-checks/apps/cp2k/cp2k_check.py
@@ -14,15 +14,17 @@ def __init__(self):
14
self.executable = 'cp2k.psmp'
15
self.executable_opts = ['H2O-256.inp']
16
17
- energy = sn.extractsingle(r'\s+ENERGY\| Total FORCE_EVAL \( QS \) '
18
- r'energy \(a\.u\.\):\s+(?P<energy>\S+)',
19
- self.stdout, 'energy', float, item=-1)
+ energy = sn.extractsingle(
+ r'\s+ENERGY\| Total FORCE_EVAL \( QS \) '
+ r'energy [\[\(]a\.u\.[\]\)]:\s+(?P<energy>\S+)',
20
+ self.stdout, 'energy', float, item=-1
21
+ )
22
energy_reference = -4404.2323
23
energy_diff = sn.abs(energy-energy_reference)
24
self.sanity_patterns = sn.all([
25
sn.assert_found(r'PROGRAM STOPPED IN', self.stdout),
26
sn.assert_eq(sn.count(sn.extractall(
- r'(?P<step_count>STEP NUM)',
27
+ r'(?i)(?P<step_count>STEP NUMBER)',
28
self.stdout, 'step_count')), 10),
29
sn.assert_lt(energy_diff, 1e-4)
30
])
0 commit comments