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

Epetra: Error in matrix-matrix multiplication #8826

Closed
searhein opened this issue Mar 2, 2021 · 4 comments
Closed

Epetra: Error in matrix-matrix multiplication #8826

searhein opened this issue Mar 2, 2021 · 4 comments
Labels
CLOSED_DUE_TO_INACTIVITY Issue or PR has been closed by the GitHub Actions bot due to inactivity. MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. pkg: Epetra pkg: ShyLU pkg: Xpetra type: question

Comments

@searhein
Copy link
Contributor

searhein commented Mar 2, 2021

Question

@trilinos/epetra
@trilinos/xpetra
@trilinos/shylu

First, I should not that I am using Epetra through the Xpetra interface in FROSch. My question is the following:

Previously, I constructed a specific Epetra_CrsMatrix (through an Xpetra::Matrix) without specifying a column map. Now, I added a column map to the call of the constructor in order to be able to assembly the matrix using local indices. This works smoothly.
However, at a later point in the code, I am multiplying another Epetra_CrsMatrix (Xpetra::Matrix) with this matrix using Xpetra::MatrixMatrix<>::Multiply(). At this point the program, terminates with the error:

Epetra_MpiDistributor::CreateRecvStructures_ expected RemotePIDs to be in sorted order

I am very surprised about this, also because I do not obtain this error using Tpetra instead. For now, I added an if statement to differentiate between Epetra and Tpetra; see the changes to the file packages/shylu/shylu_dd/frosch/src/CoarseSpaces/FROSch_CoarseSpace_def.hpp (lines 170-193) in my PR #8825. This should be fine for now, however, it would be great to understand how I could also get this running with Epetra.

@csiefer2
Copy link
Member

csiefer2 commented Mar 2, 2021

There's an assumption that the column map is in "Aztec" ordering, which is as follows:

  1. All the "local rows" (aka rows which in the domain map) first.
  2. Off-rank rows are ordered by owning PID and sub-sorted by GID.

@searhein
Copy link
Contributor Author

searhein commented Mar 9, 2021

@csiefer2 Thanks for the explanation. Is there a way to automatically re-order the map accordingly?

@github-actions
Copy link

This issue has had no activity for 365 days and is marked for closure. It will be closed after an additional 30 days of inactivity.
If you would like to keep this issue open please add a comment and/or remove the MARKED_FOR_CLOSURE label.
If this issue should be kept open even with no activity beyond the time limits you can add the label DO_NOT_AUTOCLOSE.
If it is ok for this issue to be closed, feel free to go ahead and close it. Please do not add any comments or change any labels or otherwise touch this issue unless your intention is to reset the inactivity counter for an additional year.

@github-actions github-actions bot added the MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. label Mar 23, 2022
@github-actions
Copy link

This issue was closed due to inactivity for 395 days.

@github-actions github-actions bot added the CLOSED_DUE_TO_INACTIVITY Issue or PR has been closed by the GitHub Actions bot due to inactivity. label Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLOSED_DUE_TO_INACTIVITY Issue or PR has been closed by the GitHub Actions bot due to inactivity. MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. pkg: Epetra pkg: ShyLU pkg: Xpetra type: question
Projects
None yet
Development

No branches or pull requests

2 participants