Skip to content

Commit 3c71eb2

Browse files
author
Luca
committed
Move performance and sanity on top
1 parent 2bb9073 commit 3c71eb2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cscs-checks/apps/vasp/vasp_check.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ class VASPCheck(rfm.RunOnlyRegressionTest):
5353
}
5454
}
5555

56+
@performance_function('s')
57+
def time(self):
58+
return sn.extractsingle(r'Elapsed time \(sec\):'
59+
r'\s+(?P<time>\S+)', 'OUTCAR',
60+
'time', float)
61+
62+
@sanity_function
63+
def assert_reference(self):
64+
force = sn.extractsingle(r'1 F=\s+(?P<result>\S+)',
65+
self.stdout, 'result', float)
66+
return sn.assert_reference(force, -.85026214E+03, -1e-5, 1e-5)
67+
5668

5769
@run_after('init')
5870
def setup_system_filtering(self):
@@ -77,18 +89,6 @@ def setup_system_filtering(self):
7789
self.valid_prog_environs = ['builtin']
7890

7991

80-
@sanity_function
81-
def assert_reference(self):
82-
force = sn.extractsingle(r'1 F=\s+(?P<result>\S+)',
83-
self.stdout, 'result', float)
84-
return sn.assert_reference(force, -.85026214E+03, -1e-5, 1e-5)
85-
86-
@performance_function('s')
87-
def time(self):
88-
return sn.extractsingle(r'Elapsed time \(sec\):'
89-
r'\s+(?P<time>\S+)', 'OUTCAR',
90-
'time', float)
91-
9292
@run_before('run')
9393
def setup_run(self):
9494
# set auto-detected architecture

0 commit comments

Comments
 (0)