From a48bfbc6966101c8a3c3eb7c4db6bd7a1e72c00a Mon Sep 17 00:00:00 2001 From: Thomas Kittelmann Date: Thu, 24 Oct 2024 13:46:21 +0200 Subject: [PATCH] work on test reproducibility --- ncrystal_core/src/NCVDOSEval.cc | 3 ++- tests/scripts/vdosreg2.log | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ncrystal_core/src/NCVDOSEval.cc b/ncrystal_core/src/NCVDOSEval.cc index 254844e1..cb1ed419 100644 --- a/ncrystal_core/src/NCVDOSEval.cc +++ b/ncrystal_core/src/NCVDOSEval.cc @@ -177,7 +177,8 @@ NC::VDOSEval::VDOSEval(const VDOSData& vd) { if ( s_verbose_vdoseval ) NCRYSTAL_MSG("VDOSEval constructed ("<0.5 && m_elementMassAMU.dbl()<2000.0 ); nc_assert_always(m_density.size()(std::numeric_limits::max()-2)); diff --git a/tests/scripts/vdosreg2.log b/tests/scripts/vdosreg2.log index a2cb5d64..7360e4e0 100644 --- a/tests/scripts/vdosreg2.log +++ b/tests/scripts/vdosreg2.log @@ -742,7 +742,7 @@ NCrystal: regulariseVDOSGrid Checking best tol (from k=252): 4.57143e-08 versus NCrystal: regulariseVDOSGrid trying k=615 (m=5007, eps=7.36254e-06) NCrystal: regulariseVDOSGrid Checking best tol (from k=252): 4.57143e-08 versus 4.27486e-07 = 0.0427486 * 1e-05 NCrystal: regulariseVDOSGrid Grid was regularised using 2054 equidistant points on interval [0.00524982, 0.0480192] -NCrystal: VDOSEval constructed (2054 density pts on egrid spanning [0.00524982, 0.0480192] +NCrystal: VDOSEval constructed (2054 density pts on egrid spanning [0.00524982, 0.048019186904762]) NCrystal: Called regulariseVDOSGrid([0.00524982,..,0.0479984], 172 density pts NCrystal: regulariseVDOSGrid trying k=246 (m=2003, eps=3.09439e-06) NCrystal: regulariseVDOSGrid NEW BEST k=246 (reduces epsilon by factor 0 = 1-1) @@ -1487,4 +1487,4 @@ NCrystal: regulariseVDOSGrid Checking best tol (from k=252): 4.57143e-08 versus NCrystal: regulariseVDOSGrid trying k=615 (m=5007, eps=7.36254e-06) NCrystal: regulariseVDOSGrid Checking best tol (from k=252): 4.57143e-08 versus 4.27486e-07 = 0.0427486 * 1e-05 NCrystal: regulariseVDOSGrid Grid was regularised using 2054 equidistant points on interval [0.00524982, 0.0480192] -NCrystal: VDOSEval constructed (2054 density pts on egrid spanning [0.00524982, 0.0480192] +NCrystal: VDOSEval constructed (2054 density pts on egrid spanning [0.00524982, 0.048019186904762])