From d94db61534340eecceab407961e438403f13bba5 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 3 Sep 2016 17:01:10 +0200 Subject: [PATCH 1/3] update only supported by minority of the tests --- lib/damask/test/test.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/damask/test/test.py b/lib/damask/test/test.py index 10fb993e2..f2d000ab0 100644 --- a/lib/damask/test/test.py +++ b/lib/damask/test/test.py @@ -49,14 +49,8 @@ class Test(): action = "store_true", dest = "accept", help = "calculate results but always consider test as successfull") - self.parser.add_option("-u", "--update", - action = "store_true", - dest = "update", - help = "use current test results as new reference" - ) self.parser.set_defaults(debug = False, accept = False, - update = False, ) def execute(self): @@ -82,7 +76,7 @@ class Test(): self.prepare(variant) self.run(variant) self.postprocess(variant) - if self.options.update: # update requested + if self.updateRequested: # update requested self.update(variant) elif not (self.options.accept or self.compare(variant)): # no update, do comparison return variant+1 # return culprit From 5fec85a159ec5bc39d9cab262cef91c371c1087a Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 3 Sep 2016 17:01:39 +0200 Subject: [PATCH 2/3] not needed any more --- code/math.f90 | 1 - 1 file changed, 1 deletion(-) diff --git a/code/math.f90 b/code/math.f90 index 8694e30ee..fba431a56 100644 --- a/code/math.f90 +++ b/code/math.f90 @@ -178,7 +178,6 @@ subroutine math_init use, intrinsic :: iso_fortran_env ! to get compiler_version and compiler_options (at least for gfortran 4.6 at the moment) use prec, only: tol_math_check use numerics, only: & - worldrank, & fixedSeed use IO, only: IO_error, IO_timeStamp From 6ea7eeee08bec19f12adaa59fc5699d079bc71fc Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 4 Sep 2016 07:34:58 +0200 Subject: [PATCH 3/3] bugfix when restoring old behavior --- lib/damask/test/test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/damask/test/test.py b/lib/damask/test/test.py index f2d000ab0..78af62e95 100644 --- a/lib/damask/test/test.py +++ b/lib/damask/test/test.py @@ -41,6 +41,7 @@ class Test(): self.parser = OptionParser(description = '{} (using class: {})'.format(description,damask.version), usage = './test.py [options]') + self.updateRequested = False self.parser.add_option("-d", "--debug", action = "store_true", dest = "debug",