[Trilinos-Users] getGlobalNumRows(), Tpetra

Hoemmen, Mark mhoemme at sandia.gov
Tue Nov 1 14:24:11 EDT 2016


On 11/1/16, 9:25 AM, "Trilinos-Users on behalf of trilinos-users-request at trilinos.org" <trilinos-users-bounces at trilinos.org on behalf of trilinos-users-request at trilinos.org> wrote:
>Date: Thu, 27 Oct 2016 16:45:39 +0000
>From: "Hysom, David A." <hysom1 at llnl.gov>
>To: "trilinos-users at trilinos.org" <trilinos-users at trilinos.org>
>Subject: [Trilinos-Users] getGlobalNumRows(), Tpetra
>
>We're using a 2D distributed CrsMatrix.
>Per your documentation here:
>https://trilinos.org/docs/r11.10/packages/tpetra/doc/html/classTpetra_1_1CrsMatrix.html#a8cd81aca81c80d690e8acc0f800d8a55
>We should use this to get the number of rows in the matrix:
>globalNumRows = getRangeMap()<https://trilinos.org/docs/r11.10/packages/tpetra/doc/html/classTpetra_1_1CrsMatrix.html#a331bf51d3bf0bdeee0d20391a7826a9e>->getGlobalNumElements();
>
>However, this is returning the number of (non-zero) entries in the matrix!
>Can you explain this?

Could you please resend with the HTML removed from the e-mail?  It’s hard to tell what’s going on.  Thanks!

mfh



More information about the Trilinos-Users mailing list