* Number of entries in a
* specific row.
*/
- size_type row_length (const size_type row) const;
+ unsigned int row_length (const size_type row) const;
/**
* Returns the state of the matrix,
{
if (matrix->Filled() == false)
{
- ierr = matrix->Epetra_CrsMatrix::InsertGlobalValues(row, n_columns,
- const_cast<double *>(col_value_ptr),
- col_index_ptr);
+ ierr = matrix->Epetra_CrsMatrix::InsertGlobalValues(
+ static_cast<TrilinosWrappers::types::int_type>(row),
+ static_cast<int>(n_columns),const_cast<double *>(col_value_ptr),
+ col_index_ptr);
// When inserting elements, we do
// not want to create exceptions in
TrilinosWrappers::types::int_type *col_index_ptr =
(TrilinosWrappers::types::int_type *)(&*begin);
- const TrilinosWrappers::types::int_type n_cols =
- static_cast<TrilinosWrappers::types::int_type>(end - begin);
+ const int n_cols = static_cast<int>(end - begin);
compressed = false;
const int ierr = graph->InsertGlobalIndices (1,
for (size_type row=first_row; row<last_row; ++row)
{
- const TrilinosWrappers::types::int_type row_length = sparsity_pattern.row_length(row);
+ const int row_length = sparsity_pattern.row_length(row);
if (row_length == 0)
continue;
- SparseMatrix::size_type
+ unsigned int
SparseMatrix::row_length (const size_type row) const
{
Assert (row < m(), ExcInternalError());
for (int i=0; i<graph->NumMyRows(); ++i)
{
graph->ExtractMyRowView (i, num_entries, indices);
- for (TrilinosWrappers::types::int_type j=0; j<num_entries; ++j)
+ for (int j=0; j<num_entries; ++j)
out << "(" << i << "," << indices[global_row_index(*graph,j)] << ") "
<< std::endl;
}
int num_entries;
graph->ExtractMyRowView (row, num_entries, indices);
- for (size_type j=0; j<(size_type)num_entries; ++j)
+ for (unsigned int j=0; j<(unsigned int)num_entries; ++j)
// while matrix entries are usually
// written (i,j), with i vertical and
// j horizontal, gnuplot output is
// x-y, that is we have to exchange
// the order of output
out << indices[global_row_index(*graph,static_cast<int>(j))]
- << " " << -static_cast<TrilinosWrappers::types::int_type>(row)
- << std::endl;
+ << " " << -static_cast<unsigned int>(row) << std::endl;
}
AssertThrow (out, ExcIO());