}
int ierr = matrix->trilinos_matrix().ExtractGlobalRowCopy(
- static_cast<TrilinosWrappers::types::int_type>(this->a_row),
+ this->a_row,
colnums,
ncols,
&((*value_cache)[0]),
&nonlocal_matrix->Graph() :
&matrix->Graph();
- indices.resize(graph->NumGlobalIndices(
- static_cast<TrilinosWrappers::types::int_type>(row)));
+ indices.resize(graph->NumGlobalIndices(row));
int n_indices = 0;
- graph->ExtractGlobalRowCopy(
- static_cast<TrilinosWrappers::types::int_type>(row),
- indices.size(),
- n_indices,
- indices.data());
+ graph->ExtractGlobalRowCopy(row,
+ indices.size(),
+ n_indices,
+ indices.data());
AssertDimension(n_indices, indices.size());
for (TrilinosWrappers::types::int_type i = 0; i < n_indices; ++i)
// get a representation of the present row
int ncols;
const int ierr = sparsity_pattern->graph->ExtractGlobalRowCopy(
- static_cast<TrilinosWrappers::types::int_type>(this->a_row),
+ this->a_row,
colnum_cache->size(),
ncols,
reinterpret_cast<TrilinosWrappers::types::int_type *>(
{
// insert dummy element
TrilinosWrappers::types::int_type row =
- nonlocal_graph->RowMap().MyGID(
- static_cast<TrilinosWrappers::types::int_type>(0));
+ nonlocal_graph->RowMap().MyGID(0);
nonlocal_graph->InsertGlobalIndices(row, 1, &row);
}
Assert(nonlocal_graph->RowMap().NumMyElements() == 0 ||
// TODO: trilinos_i is the local row index -> it is an int but
// ExtractGlobalRowView requires trilinos_i to be the global row
// index and thus it should be a long long int
- int ierr = graph->ExtractGlobalRowView(
- static_cast<TrilinosWrappers::types::int_type>(trilinos_i),
- nnz_extracted,
- col_indices);
+ int ierr = graph->ExtractGlobalRowView(trilinos_i,
+ nnz_extracted,
+ col_indices);
(void)ierr;
Assert(ierr == 0, ExcTrilinosError(ierr));
Assert(nnz_present == nnz_extracted,
TrilinosWrappers::types::int_type *el_find =
std::find(col_indices, col_indices + nnz_present, trilinos_j);
- const auto &local_col_index =
- static_cast<TrilinosWrappers::types::int_type>(el_find -
- col_indices);
+ const TrilinosWrappers::types::int_type local_col_index =
+ el_find - col_indices;
if (local_col_index == nnz_present)
return false;
{
// Prepare pointers for extraction
// of a view of the row.
- int nnz_present = graph->NumGlobalIndices(
- static_cast<TrilinosWrappers::types::int_type>(i));
+ int nnz_present = graph->NumGlobalIndices(i);
int nnz_extracted;
int *col_indices;
for (unsigned int j = 0; j < static_cast<unsigned int>(num_entries);
++j)
{
- if (static_cast<size_type>(
- std::abs(static_cast<TrilinosWrappers::types::int_type>(
- i - indices[j]))) > local_b)
- local_b = std::abs(
- static_cast<TrilinosWrappers::types::int_type>(i - indices[j]));
+ if (static_cast<size_type>(std::abs(i - indices[j])) > local_b)
+ local_b = std::abs(i - indices[j]);
}
}
graph->Comm().MaxAll(reinterpret_cast<TrilinosWrappers::types::int_type *>(