diff --git a/tests/scripts/check_traces.py b/tests/scripts/check_traces.py index 88b9f4546..7c8c0e45d 100755 --- a/tests/scripts/check_traces.py +++ b/tests/scripts/check_traces.py @@ -1274,9 +1274,9 @@ if __name__=='__main__': default='0', help='Exclude a number of DMC steps from being checked. This option is temporary and will be removed once a bug in the DMC weights for the first step is fixed (default=%default).' ) - parser.add_option('--mixed_precision',dest='mixed_precision', - action='store_true',default='False', - help='Increase tolerance for mixed precision test (default=%default).' + parser.add_option('--tol',dest='tolerance', + default='1e-8', + help='Tolerance to check (default=%default).' ) opt,paths = parser.parse_args() @@ -1294,10 +1294,7 @@ if __name__=='__main__': sys.exit(0) #end if - tol = 1e-8 - if options.mixed_precision: - tol = 1e-6 - #end if + tol = float(options.tolerance) if len(paths)==0: options.path = './' diff --git a/tests/solids/diamondC_1x1x1_pp/CMakeLists.txt b/tests/solids/diamondC_1x1x1_pp/CMakeLists.txt index da10d201b..234903e6f 100644 --- a/tests/solids/diamondC_1x1x1_pp/CMakeLists.txt +++ b/tests/solids/diamondC_1x1x1_pp/CMakeLists.txt @@ -891,7 +891,7 @@ ENDIF() "${CMAKE_SOURCE_DIR}/tests/solids/diamondC_1x1x1_pp" qmc_trace_scalars.in.xml 1 1 - check_traces.py -p qmc_trace_scalars -s '0,1' -m 'vmc,dmc' --dmc_steps_exclude=1 --mixed_precision + check_traces.py -p qmc_trace_scalars -s '0,1' -m 'vmc,dmc' --dmc_steps_exclude=1 --tol=1e-6 ) ELSE() SIMPLE_RUN_AND_CHECK( @@ -910,7 +910,7 @@ ENDIF() "${CMAKE_SOURCE_DIR}/tests/solids/diamondC_1x1x1_pp" qmc_trace_scalars_selective.in.xml 1 1 - check_traces.py -p qmc_trace_scalars_selective -s '0,1' -m 'vmc,dmc' -q 'Kinetic,ElecElec' --dmc_steps_exclude=1 --mixed_precision + check_traces.py -p qmc_trace_scalars_selective -s '0,1' -m 'vmc,dmc' -q 'Kinetic,ElecElec' --dmc_steps_exclude=1 --tol=1e-6 ) ELSE() SIMPLE_RUN_AND_CHECK(