Open maxfirmbach opened 4 days ago
@ndellingwood @iyamazaki
As an aside, I don't think you are required to have continuous GIDs so long as you set the IsContiguous
setting to false
. For our application code, we've never had to remap our discontinuous GIDs to continuous GIDs.
See, for example: https://github.com/trilinos/Trilinos/blob/master/packages/amesos2/test/solvers/Superlu_UnitTests.cpp#L372.
The one big caveat with that is if you dump the matrix to matrix-market format, you'll need to remap those GIDs to be 1-based index to be in compliance with the matrix market format. Here's a completely un-tested, un-supported, provided as-is without any warranty Python script that can accomplish that as a post-processing step:
@MalachiTimothyPhillips Interesting! I will try to set the IsContiguous
parameter to false
, maybe that already solves the problem.
Question
Dear Amesos2-developers,
currently I'm trying to switch our in-house code from
Amesos
toAmesos2
. As, let's call it pre-processing step, we do a reindexing of our linear problem to have a continous GID numbering from 0 ... n, usingEpetraExt
(which in our case is necessary as we have GID jumps). Is there a similar feature implemented inXpetra
orTpetra
?I've seen that
Amesos2
has areindex
input parameter, but looking into the code, it seems to do ... basically nothing? From documentation:Are there any intentions to implement this feature properly into
Amesos2
?Best regards, Max
@trilinos/amesos2 @mayrmt