MachLine icon indicating copy to clipboard operation
MachLine copied to clipboard

failed unit test

Open pl96andy opened this issue 1 year ago • 0 comments

Hi, i am trying to install MachLine on Ubuntu according to instruction, however when i am running unit tests, one of tests is failed: ` test/test_machline.py ...........F......... [100%]

=================================== FAILURES =================================== __________________ test_12_subsonic_comp_pressure_corrections __________________

def test_12_subsonic_comp_pressure_corrections():

    # Tests the half wing case with the source-free formulation returns the consistent result

    C_p_max, C_p_min, Cx, Cy, Cz = run_machline("test/input_files/compressible_half_wing_input.json")

    print(C_p_max)
    print(C_p_min)
    print(Cx)
    print(Cy)
    print(Cz)

    assert(abs(C_p_max - 0.817285785213847) < 1e-9)
    assert(abs(C_p_min - -1.09376107707523) < 1e-9)
    assert(abs(Cx - -0.508549885785561) < 1e-9)
    assert(abs(Cy - 0.0102005794126269) < 1e-9)
  assert(abs(Cz - 26.2795099006351) < 1e-8)

E assert 1.329930299220905e-08 < 1e-08 E + where 1.329930299220905e-08 = abs((26.2795098873358 - 26.2795099006351))

/home/vdi-user/MachLine/MachLine-main/test/test_machline.py:425: AssertionError ----------------------------- Captured stdout call ----------------------------- 0.817285785147843 -1.09376107693001 -0.508549885553291 0.0102005794029252 26.2795098873358 =========================== short test summary info ============================ FAILED test/test_machline.py::test_12_subsonic_comp_pressure_corrections - assert 1.329930299220905e-08 < 1e-08 ======================== 1 failed, 20 passed in 12.91s ========================= ` Code looks some how validated as for subsonic flow, so am I doing some mistake during compilation process? Thank you

pl96andy avatar Oct 19 '24 19:10 pl96andy