Skip to content

Conversation

@cval26
Copy link
Collaborator

@cval26 cval26 commented Sep 23, 2023

This PR includes two main changes.

  1. Fixes issues in the current orthogonalize method of the Matrix class.
  2. Adds an incremental Gram-Schmidt function orthogonalize_last, where only the last column of the input matrix is orthonormalized, assuming the previous columns are already orthonormal.

The above changes are motivated by applications in the Laghos hydrodynamics code.

@cval26 cval26 added bug enhancement WIP Work in progress labels Sep 23, 2023
@cval26 cval26 self-assigned this Sep 23, 2023
@cval26 cval26 added RFR Ready for review and removed WIP Work in progress labels Sep 27, 2023
@cval26 cval26 marked this pull request as ready for review September 27, 2023 15:43
@dylan-copeland
Copy link
Collaborator

The style script needs to be run.

@cval26
Copy link
Collaborator Author

cval26 commented Sep 27, 2023

@dylan-copeland
I just did. Sorry about that; didn't run it right the first time.

@cval26
Copy link
Collaborator Author

cval26 commented Sep 27, 2023

The tests I added in the Matrix test suite fail in the CI build, even though they run successfully in my local build on LC. I'll have to check why and get back to you.

@dylan-copeland
Looking at the CI output, it looks like the tests are run once successfully, then run once again and they fail. Is this somehow related to the warning at the beginning of the test output file saying that two active threads have been detected? I'm not sure if the problem is in the unit tests themselves or in the way they were run.

EDIT: The issue has been resolved by the changes made after review number 1.

@cval26
Copy link
Collaborator Author

cval26 commented Sep 28, 2023

@dylan-copeland Thank you for the review comments; the testing issue has been resolved.

@dylan-copeland @chldkdtn Please review the code once more so that we can merge it.

@cval26 cval26 requested review from chldkdtn, dylan-copeland and siuwuncheung and removed request for chldkdtn and siuwuncheung November 1, 2023 15:36
@dylan-copeland
Copy link
Collaborator

git pull origin master will resolve the conflicts and should make the regression tests pass (currently they are using wrong command line flags).

@cval26 cval26 force-pushed the orthogonalize-last branch from 3083bea to 419ba38 Compare November 3, 2023 15:49
@cval26 cval26 requested a review from dylan-copeland November 3, 2023 15:50
@cval26 cval26 merged commit a082bd3 into master Dec 15, 2023
@cval26 cval26 deleted the orthogonalize-last branch December 18, 2023 18:35
andersonw1 pushed a commit that referenced this pull request Jan 8, 2024
* fix issues in Matrix::orthogonalize

* add Matrix::orthogonalize_last method

* run astyle

* add another test for Matrix::orthogonalize_last

* rerun astyle properly

* review n.1 changes

* review n.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants