[Trilinos-Users] Epetra_CrsMatrix::InsertGlobalValues

Antonella Longo antonella.longo at ingv.it
Sun Mar 8 01:05:10 MST 2015


I insert a fixed number (1.0) in a specific position (row1,col1) of
an Epetra_CrsMatrix with the function InsertGlobalValues.
The problem is that more than one PID owns the (row1,col1) position,
so that when i call the function InsertGlobalValues for the (row1,col1)
position
each PID gives its contribution. As a result, after the fillComplete call
all these contributions will sum up, resulting in a number greater than 1
in position (row1,col1).
I also tried with the ReplaceGlobalValues function, but also these
contributions
are summed up with the fillComplete call.

Is there any way to prevent this problem?

Antonella


-- 
-----------------------------------------------
Antonella Longo
Istituto Nazionale di Geofisica e Vulcanologia
Sezione di Pisa
Via Uguccione della Faggiola, 32
Pisa, Italy
email: antonella.longo at ingv.it
Tel. office: 050 8311939
Cell.: 339 7532089
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150308/389fbee4/attachment.html>


More information about the Trilinos-Users mailing list