NumGlobalElements is only available if the Epetra map was created with a
32 bit int for the dimension, which is not true if we compile with 64
bit enabled. Fix this using the helper functions we already have.
{
if (nonlocal_graph->IndicesAreGlobal() == false &&
nonlocal_graph->RowMap().NumMyElements() > 0 &&
- column_space_map->NumGlobalElements() > 0)
+ n_global_elements(*column_space_map) > 0)
{
// Insert dummy element at (row, column) that corresponds to row 0
// in local index counting.
AssertThrow(ierr == 0, ExcTrilinosError(ierr));
}
Assert(nonlocal_graph->RowMap().NumMyElements() == 0 ||
- column_space_map->NumGlobalElements() == 0 ||
+ n_global_elements(*column_space_map) == 0 ||
nonlocal_graph->IndicesAreGlobal() == true,
ExcInternalError());
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams