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

Fix Tpetra SparseMatrix::add(). #16731

Merged
merged 1 commit into from Mar 8, 2024
Merged

Fix Tpetra SparseMatrix::add(). #16731

merged 1 commit into from Mar 8, 2024

Conversation

bangerth
Copy link
Member

@bangerth bangerth commented Mar 7, 2024

The Tpetra interfaces apparently have no way of adding one matrix to another in-place. Instead, they have this function that returns the sum of the two: https://docs.trilinos.org/dev/packages/tpetra/doc/html/classTpetra_1_1CrsMatrix.html#a3ee27c311324dcc76e91dac9084011e1 Inconveniently, it requires some casting of pointers with its return value.

In the current implementation, we call this function but forget about its return value, presumably because the corresponding Epetra function did the addition in-place. This patch fixes this for the Tpetra wrappers. This patch is necessary to successfully pass the tests that I'm adding with the next PR, so I didn't add specific tests for this function.

@masterleinad masterleinad merged commit ec996d3 into dealii:master Mar 8, 2024
12 checks passed
@bangerth bangerth deleted the t1 branch March 8, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants