Commit d754b68f authored by Daniel Wortmann's avatar Daniel Wortmann
Browse files

Test adjustments

parent a7f0e59d
......@@ -81,7 +81,7 @@ def test_CoUnfold(execute_fleur, grep_exists, grep_number):
assert grep_exists(res_files['bands_sc.2'], "18.1958.*0.62228")
assert grep_exists(res_files['bands_sc.2'], "27.1348.*0.00942")
else:
assert grep_exists(res_files['bands_sc.1'], "-8.92160.*0.94323")
assert grep_exists(res_files['bands_sc.1'], "6.028983.*0.039764")
assert grep_exists(res_files['bands_sc.2'], "10.19049.*0.622280")
assert grep_exists(res_files['bands_sc.2'], "19.12947.*0.009426")
assert grep_exists(res_files['bands_sc.1'], "-8.9216.*0.94323")
assert grep_exists(res_files['bands_sc.1'], "6.028.*0.8807")
assert grep_exists(res_files['bands_sc.2'], "10.489.*0.016")
assert grep_exists(res_files['bands_sc.2'], "15.513.*0.01174")
......@@ -29,5 +29,5 @@ def test_CrystalFieldOutput(execute_fleur, grep_exists, grep_number):
# The python grep has interprets the E+01 as some expression
assert grep_exists(res_files['out'], "0.14060E")#+01")
assert grep_exists(res_files['out'], "0.82207E")#+00")
assert grep_exists(res_files['out'], "0.89945E")#+00")
assert grep_exists(res_files['out'], "0.89951E")#+00")
assert grep_exists(res_files['out'], "0.65772E")#+01")
\ No newline at end of file
......@@ -46,8 +46,8 @@ def test_FePt_film_SSFT(execute_fleur, grep_number, grep_exists, validate_out_xm
ev_q1 = grep_number(res_files['out.xml'], 'Entry q="1"', "ev-sum=")
ev_q2 = grep_number(res_files['out.xml'], 'Entry q="2"', "ev-sum=")
assert abs(ev_q1 - -5.1963027) <= 0.000001
assert abs(ev_q2 - -5.1706272) <= 0.000001
assert abs(ev_q1 - -5.196305) <= 0.000001
assert abs(ev_q2 - -5.170629) <= 0.000001
@pytest.mark.serial
......@@ -96,5 +96,5 @@ def test_FePt_film_SSFT_LO(execute_fleur, grep_number, grep_exists, validate_out
ev_q1 = grep_number(res_files['out.xml'], 'Entry q="1"', "ev-sum=")
ev_q2 = grep_number(res_files['out.xml'], 'Entry q="2"', "ev-sum=")
assert abs(ev_q1 - -37.3675172) <= 0.000001
assert abs(ev_q2 - -37.3421763) <= 0.000001
assert abs(ev_q1 - -37.3675189) <= 0.000001
assert abs(ev_q2 - -37.342178) <= 0.000001
......@@ -28,7 +28,7 @@ def test_Fe_1l_SOCXML(execute_fleur, grep_number, grep_exists):
assert abs(mm - 0.279) <= 0.001
assert abs(qfix - 1.0) <= 0.0001
assert abs(fermi - -0.2450) <= 0.0001
assert abs(fermi - -0.2451) <= 0.0001
assert abs(tenergy - -1272.6885) <= 0.001
@pytest.mark.serial
......@@ -53,9 +53,9 @@ def test_Fe_1l_Tria(execute_fleur, grep_number, grep_exists):
dist = grep_number(res_files['out'], "distance of charge densities for it=", ":")
assert abs(fermi - -0.16919) <= 0.005
assert abs(tenergy - -1272.6376271846) <= 0.01
assert abs(dist - 9.75) <= 0.5
assert abs(fermi - -0.15624) <= 0.005
assert abs(tenergy - -1272.616) <= 0.01
assert abs(dist - 5.98) <= 0.5
@pytest.mark.serial
......
......@@ -23,4 +23,4 @@ def test_Fe_Tetra_noSYM(execute_fleur, grep_number, grep_exists):
assert abs(fermi - 0.36646) <= 0.005
assert abs(tenergy - -1272.8002015793) <= 0.00005
assert abs(dist - 0.36409) <= 0.0002
assert abs(dist - 0.186899) <= 0.0002
......@@ -56,7 +56,7 @@ def test_GreensFunction_SphavgFilm(execute_fleur, grep_number, grep_exists):
spindown_trace = grep_number(res_files['out'], "Spin-Down trace:", ":")
assert abs(spinup_trace - 4.8586) <= 0.0005
assert abs(spindown_trace - 2.6644) <= 0.0005
assert abs(spindown_trace - 2.64494) <= 0.0005
@pytest.mark.serial
......
......@@ -25,23 +25,23 @@ def test_H2ORelaxBFGS(execute_fleur, grep_number, grep_exists):
assert (file1 in res_file_names), f'{file1} missing'
#grep for displacements
assert grep_exists(res_files['relax.xml'], "0.2691")
assert grep_exists(res_files['relax.xml'], "0.1180")
assert grep_exists(res_files['relax.xml'], "0.1397")
assert grep_exists(res_files['relax.xml'], "0.2107")
assert grep_exists(res_files['relax.xml'], "0.0252")
assert grep_exists(res_files['relax.xml'], "0.1079")
#grep for forces in different calls
assert grep_exists(res_files['relax.xml'], "0.15544")
assert grep_exists(res_files['relax.xml'], "0.00567")
assert grep_exists(res_files['relax.xml'], "0.07831")
assert grep_exists(res_files['relax.xml'], "0.154")
assert grep_exists(res_files['relax.xml'], "0.005")
assert grep_exists(res_files['relax.xml'], "0.078")
assert grep_exists(res_files['relax.xml'], "0.0602")
assert grep_exists(res_files['relax.xml'], "0.0240")
assert grep_exists(res_files['relax.xml'], "0.0314")
assert grep_exists(res_files['relax.xml'], "0.059")
assert grep_exists(res_files['relax.xml'], "0.023")
assert grep_exists(res_files['relax.xml'], "0.031")
assert grep_exists(res_files['relax.xml'], "0.0181")
assert grep_exists(res_files['relax.xml'], "0.0323")
assert grep_exists(res_files['relax.xml'], "0.0101")
#assert grep_exists(res_files['relax.xml'], "0.0181")
#assert grep_exists(res_files['relax.xml'], "0.0323")
#assert grep_exists(res_files['relax.xml'], "0.0101")
tenergy = grep_number(res_files['out'], "total energy=", "=")
assert abs(tenergy - -75.961979) <= 0.000002
......@@ -38,8 +38,8 @@ def test_SiFilmPlotXML(execute_fleur, grep_number, grep_exists):
assert grep_exists(res_files['denIn.xsf'], ".39481")
assert grep_exists(res_files['denIn.xsf'], "2.23341")
# density values
assert grep_exists(res_files['denIn.xsf'], "1.9227") # line 24
assert grep_exists(res_files['denIn.xsf'], "7.9875") # line 521
assert grep_exists(res_files['denIn.xsf'], "1.9200") # line 24
assert grep_exists(res_files['denIn.xsf'], "7.9868") # line 521
assert grep_exists(res_files['denIn.xsf'], "10.2889") # line 523
@pytest.mark.serial
......@@ -90,8 +90,8 @@ def test_SiFilmSlicePlotXML(execute_fleur, grep_number, grep_exists):
assert grep_exists(res_files['slice.xsf'], ".39481")
assert grep_exists(res_files['slice.xsf'], "2.23341")
# density values
assert grep_exists(res_files['slice.xsf'], "1.43964") # line 24
assert grep_exists(res_files['slice.xsf'], "2.54654") # line 289
assert grep_exists(res_files['slice.xsf'], "2.86364") # line 521
assert grep_exists(res_files['slice.xsf'], "0.20168") # line 523
assert grep_exists(res_files['slice.xsf'], "3.10848") # line 3018
assert grep_exists(res_files['slice.xsf'], "1.3588") # line 24
assert grep_exists(res_files['slice.xsf'], "2.5717") # line 289
assert grep_exists(res_files['slice.xsf'], "2.8595") # line 521
assert grep_exists(res_files['slice.xsf'], "0.2016") # line 523
assert grep_exists(res_files['slice.xsf'], "3.2038") # line 3018
......@@ -28,7 +28,7 @@ def test_SmAtomjDOS(execute_fleur, grep_number, grep_exists):
#assert abs(efermi - -0.0957) <= 0.005
assert abs(tenergy - -10434.5474) <= 0.005
assert abs(dist - 0.0000) <= 0.001
assert abs(dist - 0.001) <= 0.001
# Stage 2
......@@ -52,7 +52,7 @@ def test_SmAtomjDOS(execute_fleur, grep_number, grep_exists):
assert grep_exists(res_files['out'], "0.020")
if 'jDOS.1' in res_file_names:
assert grep_exists(res_files['jDOS.1'], "0.850633")
assert grep_exists(res_files['jDOS.1'], "0.674817")
# assert grep_exists(res_files['jDOS.1'], "0.300025")
assert grep_exists(res_files['jDOS.1'], "0.980325")
assert grep_exists(res_files['jDOS.1'], "0.56598")
# assert grep_exists(res_files['jDOS.1'], "0.263514")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment