Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test failure ReferencePoints #4857

Open
ye-luo opened this issue Dec 6, 2023 · 6 comments
Open

Unit test failure ReferencePoints #4857

ye-luo opened this issue Dec 6, 2023 · 6 comments
Assignees

Comments

@ye-luo
Copy link
Contributor

ye-luo commented Dec 6, 2023

Failure happened on Summit.
String comparison is not reliable. See below f1m comparing -0 and 0

ReferencePoints::Description
-------------------------------------------------------------------------------
/ccs/home/yeluo/opt/qmcpack/src/Estimators/tests/test_ReferencePoints.cpp:209
...............................................................................

/ccs/home/yeluo/opt/qmcpack/src/Estimators/tests/test_ReferencePoints.cpp:273: FAILED:
  CHECK( ostr_stream.str() == expected_description )
with expansion:
  "  reference_points
      a1:        3.373161077       3.373161077                 0
      a2:                  0       3.373161077       3.373161077
      a3:        3.373161077                 0       3.373161077
      cmmm:       -3.373161077      -3.373161077      -3.373161077
      cmmp:                  0      -3.373161077                 0
      cmpm:       -3.373161077                 0                 0
      cmpp:                  0                 0       3.373161077
      cpmm:                  0                 0      -3.373161077
      cpmp:        3.373161077                 0                 0
      cppm:                  0       3.373161077                 0
      cppp:        3.373161077       3.373161077       3.373161077
      f1m:       -1.686580539      -1.686580539                -0
      f1p:        1.686580539       1.686580539                 0
      f2m:                 -0      -1.686580539      -1.686580539
      f2p:                  0       1.686580539       1.686580539
      f3m:       -1.686580539                -0      -1.686580539
      f3p:        1.686580539                 0       1.686580539
      ion1:                  0                 0                 0
      ion2:        1.686580539       1.686580539       1.686580539
      r1:        3.373161077       3.373161077                 0
      r2:                  0       3.373161077       3.373161077
      r3:        3.373161077                 0       3.373161077
      zero:                  0                 0                 0
    end reference_points
  "
  ==
  "  reference_points
      a1:        3.373161077       3.373161077                 0
      a2:                  0       3.373161077       3.373161077
      a3:        3.373161077                 0       3.373161077
      cmmm:       -3.373161077      -3.373161077      -3.373161077
      cmmp:                  0      -3.373161077                 0
      cmpm:       -3.373161077                 0                 0
      cmpp:                  0                 0       3.373161077
      cpmm:                  0                 0      -3.373161077
      cpmp:        3.373161077                 0                 0
      cppm:                  0       3.373161077                 0
      cppp:        3.373161077       3.373161077       3.373161077
      f1m:       -1.686580539      -1.686580539                 0
      f1p:        1.686580539       1.686580539                 0
      f2m:                  0      -1.686580539      -1.686580539
      f2p:                  0       1.686580539       1.686580539
      f3m:       -1.686580539                 0      -1.686580539
      f3p:        1.686580539                 0       1.686580539
      ion1:                  0                 0                 0
      ion2:        1.686580539       1.686580539       1.686580539
      r1:        3.373161077       3.373161077                 0
      r2:                  0       3.373161077       3.373161077
      r3:        3.373161077                 0       3.373161077
      zero:                  0                 0                 0
    end reference_points
  "
@PDoakORNL
Copy link
Contributor

Should I just drop unit testing for the reports? I don't think its worth writing a parser to check this output.

@ye-luo
Copy link
Contributor Author

ye-luo commented Dec 7, 2023

Trim the first two rows to compare and also do the last row?

@ye-luo
Copy link
Contributor Author

ye-luo commented Dec 14, 2023

Still failing and f1m still differ as it was.

@PDoakORNL
Copy link
Contributor

On Summit?

@ye-luo
Copy link
Contributor Author

ye-luo commented Dec 14, 2023

Yes

@PDoakORNL
Copy link
Contributor

I'm going to go reproduce that you're probably right that matching so much output is a fools errand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants