Skip to content

Random failures of sqmatrix_assert_hermitian due to hard-coded error threshold #161

Description

@oskooi

The check in sqmatrix_assert_hermitian to verify the Hermitian property of the Maxwell operator occasionally fails CI due to a larger than expected error of the hard-coded value of 1e-10 from this line:

CHECK(err < 1e-10, "sqmatrix_assert_hermitian failed");

Since it is difficult to find a reproducible test case, there are two possible workarounds:

  1. Increase the threshold error value of 1e-10. Choosing an appropriate value may involve outputting the actual error which caused the test to fail otherwise we choose some arbitrary value.
  2. Disable this test entirely since it is not that useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions