- std::size_t
+ SparseMatrix::size_type
SparseMatrix::memory_consumption () const
{
- unsigned int static_memory = sizeof(this) + sizeof (*matrix)
+ size_type static_memory = sizeof(this) + sizeof (*matrix)
+ sizeof(*matrix->Graph().DataPtr());
- return ((sizeof(TrilinosScalar)+sizeof(int))*matrix->NumMyNonzeros() +
- sizeof(int)*local_size() +
- static_memory);
+ return ((sizeof(TrilinosScalar)+sizeof(TrilinosWrapper::types::int_type))*
+ matrix->NumMyNonzeros() + sizeof(int)*local_size() + static_memory);
}
+ }
+
+ // explicit instantiations
+ #include "trilinos_sparse_matrix.inst"
-
- // explicit instantiations
- //
+
+ // TODO: put these instantiations into generic file
+ namespace TrilinosWrappers
+ {
template void
SparseMatrix::reinit (const dealii::SparsityPattern &);
template void