Hi,

I don't know it is a bug or not. But in my computer the SumIntoGlobalValues function took the default COLUMN_MAJOR value for the the last parameter.

Therefore line 317 in file trilinos_epetra_matrix.C:

00317   _mat->SumIntoGlobalValues(m, (int *)&rows[0], n, (int *)&cols[0], &dm.get_values()[0]);

should be

00317   _mat->SumIntoGlobalValues(m, (int *)&rows[0], n, (int *)&cols[0], &dm.get_values()[0], Epetra_FECrsMatrix::ROW_MAJOR);
Have a nice day,
/ Ming Q.