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

Added mp5 unit tests #35

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Added mp5 unit tests #35

merged 1 commit into from
Jan 17, 2024

Conversation

lucass-carneiro
Copy link
Collaborator

I have (finally) added mp5 reconstruction unit tests.

As per suggestion of members of our meetings, these tests do the following:

  1. Setup a 1D grid of 7 cells with 8 faces. Faces are uniformly spaced in the [-1,1] range.
  2. Construct trial functions (a constant line, a sloped line, a parabola and a hyperbole) using the cell center coordinates.
  3. Using cells (0, 1, 2) and (4, 5, 6), call the mp5_reconstruct method to obtain reconstructed values at the faces of cell 3
  4. Compare the reconstructed value with the "real" values at cell faces and check that the reconstruction did not introduce new global minima or maxima.

Like other tests, this is repeated as many times as specified in AsterX::unit_test_repetitions, each repetition with new randomly generated parameters for the trial functions sampled from the [-1, 1] range

@jaykalinani jaykalinani merged commit f836a80 into jaykalinani:main Jan 17, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants