[Trilinos-Users] Trouble With ReplaceGlobalValues (1, &global_row, nnz, Indices, &zeros_A, Epetra_FECrsMatrix::ROW_MAJOR) ;

Davood Ansari david.ansari at gmail.com
Sat Mar 15 11:30:22 MDT 2008

Hi everyone

I have a ready made and GlobalAssembled FECrs_Matrix

In later stages of my code I am trying to modify the matrix entries using
ReplaceGlobalValues (1, &global_row, nnz, Indices, &zeros_A,
Epetra_FECrsMatrix::ROW_MAJOR) ; // basically I am replacing a row with a
new one -- a dense vector
ReplaceGlobalValues (nnz, Indices, 1, &global_row, &zeros_A,
Epetra_FECrsMatrix::COLUMN_MAJOR) ; // basically I am replacing a column
with a new one -- a dense vector
Of course, I expect the method to replace some entries with new values (and
I may have multiple replacements over
the same entry but their order in not important). What happens is that for
certain entries the method
adds the required new value with the old one and does not enforce any
modification to some other entries.
Unlike the replace method SumIntoGlobalValues works fine with all
on.off-process entries.

I am really lost and have tried out any thing that I could think of.
Does anybody know where possibly I should look for the problem ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080316/c2a487c9/attachment.html

More information about the Trilinos-Users mailing list