adflow icon indicating copy to clipboard operation
adflow copied to clipboard

Complex tests generate complex reference values

Open ewu63 opened this issue 3 years ago • 0 comments

Description

Due to the build bot failure last night, we realized that some tests are generating complex values while the reference file contains only the real part. We should fix the tests so that the values we compare are real and not complex.

For ADflow the following tests are impacted:

test_jacVecProdFWD.py:TestJacVecFwdCS_0_euler_scalar_jst_tut_wing_1core.cmplx_test_wDot
test_jacVecProdFWD.py:TestJacVecFwdCS_0_euler_scalar_jst_tut_wing_1core.cmplx_test_xDvDot
test_jacVecProdFWD.py:TestJacVecFwdCS_0_euler_scalar_jst_tut_wing_1core.cmplx_test_xVDot

Steps to reproduce issue

  1. Run these tests
  2. Observe the values such as ||dR/dw * wDot||, ||dR/dalpha||, and ||dR/dXv * xVDot||

Current behavior

They are complex

Expected behavior

They should be real

ewu63 avatar May 24 '22 15:05 ewu63