Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified for the Octave compatibility updates to curvilinear operators and example output and plotting.
No open issues 🎉
What changed in this PR
This PR addresses the Octave compatibility failures reported in #531 by updating MOLE’s curvilinear operators and related example output and plotting code.
Changes:
- Replace sparse-matrix broadcasting with sparse diagonal multiplication in the 2D and 3D gradient and divergence operators.
- Use
fprintfto format numerical error output correctly in Octave. - Replace incompatible plotting calls with Octave-compatible colorbar labels, axis settings, and multiline titles.
| File | Description |
|---|---|
src/octave/grad3DCurv.m |
Apply 3D gradient metrics through sparse diagonal multiplication. |
src/octave/grad2DCurv.m |
Apply 2D gradient metrics through sparse diagonal multiplication. |
src/octave/div3DCurv.m |
Apply 3D divergence metrics through sparse diagonal multiplication. |
src/octave/div2DCurv.m |
Apply 2D divergence metrics through sparse diagonal multiplication. |
examples/octave/test_lap3DCurv.m |
Format the Laplacian error norm with fprintf. |
examples/octave/test_lap3DCurv_case2.m |
Format the second Laplacian example’s error norm. |
examples/octave/test_grad3DCurv.m |
Format all three gradient error norms. |
examples/octave/test_grad2DCurv.m |
Format both gradient error norms. |
examples/octave/test_div3DCurv.m |
Format the 3D divergence error norm. |
examples/octave/test_div2DCurv.m |
Format the 2D divergence error norm. |
examples/octave/elliptic2DCurvPeriodic.m |
Update colorbar labels and numerical error output for Octave. |
examples/octave/curvConvergenceTest.m |
Use compatible logarithmic axes, titles, and legend formatting. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this? (check all applicable)
Description
Octave curvilinear examples fail, with the new curv operators, because Octave cannot broadcast multiply anything to a sparse matrix except other sparse matrices. See issue #531
Related Issues & Documents
Added/updated tests?
_We encourage you to test all code included with MOLE, including examples.
Read Contributing Guide and Code of Conduct
[not-optional] What gif best describes this PR or how it makes you feel?