PreconditionBase::vmult(dealii::Vector<double> & dst,
const dealii::Vector<double> &src) const
{
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(dst.size()),
+ AssertDimension(dst.size(),
preconditioner->OperatorDomainMap().NumMyElements());
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(src.size()),
+ AssertDimension(src.size(),
preconditioner->OperatorRangeMap().NumMyElements());
Epetra_Vector tril_dst(View,
preconditioner->OperatorDomainMap(),
PreconditionBase::Tvmult(dealii::Vector<double> & dst,
const dealii::Vector<double> &src) const
{
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(dst.size()),
+ AssertDimension(dst.size(),
preconditioner->OperatorDomainMap().NumMyElements());
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(src.size()),
+ AssertDimension(src.size(),
preconditioner->OperatorRangeMap().NumMyElements());
Epetra_Vector tril_dst(View,
preconditioner->OperatorDomainMap(),
LinearAlgebra::distributed::Vector<double> & dst,
const LinearAlgebra::distributed::Vector<double> &src) const
{
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(
- dst.local_size()),
+ AssertDimension(dst.local_size(),
preconditioner->OperatorDomainMap().NumMyElements());
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(
- src.local_size()),
+ AssertDimension(src.local_size(),
preconditioner->OperatorRangeMap().NumMyElements());
Epetra_Vector tril_dst(View,
preconditioner->OperatorDomainMap(),
LinearAlgebra::distributed::Vector<double> & dst,
const LinearAlgebra::distributed::Vector<double> &src) const
{
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(
- dst.local_size()),
+ AssertDimension(dst.local_size(),
preconditioner->OperatorDomainMap().NumMyElements());
- AssertDimension(static_cast<TrilinosWrappers::types::int_type>(
- src.local_size()),
+ AssertDimension(src.local_size(),
preconditioner->OperatorRangeMap().NumMyElements());
Epetra_Vector tril_dst(View,
preconditioner->OperatorDomainMap(),
if (input_row_map.Comm().MyPID() == 0)
{
AssertDimension(sparsity_pattern.n_rows(),
- static_cast<size_type>(
- TrilinosWrappers::n_global_elements(
- input_row_map)));
+ TrilinosWrappers::n_global_elements(input_row_map));
AssertDimension(sparsity_pattern.n_cols(),
- static_cast<size_type>(
- TrilinosWrappers::n_global_elements(
- input_col_map)));
+ TrilinosWrappers::n_global_elements(input_col_map));
}
column_space_map = std_cxx14::make_unique<Epetra_Map>(input_col_map);
// check whether we got the number of columns right.
AssertDimension(sparsity_pattern.n_cols(),
- static_cast<size_type>(
- TrilinosWrappers::n_global_cols(*graph)));
+ TrilinosWrappers::n_global_cols(*graph));
(void)n_global_cols;
// And now finally generate the matrix.
nonlocal_matrix_exporter.reset();
AssertDimension(sparsity_pattern.n_rows(),
- static_cast<size_type>(
- TrilinosWrappers::n_global_elements(input_row_map)));
+ TrilinosWrappers::n_global_elements(input_row_map));
AssertDimension(sparsity_pattern.n_cols(),
- static_cast<size_type>(
- TrilinosWrappers::n_global_elements(input_col_map)));
+ TrilinosWrappers::n_global_elements(input_col_map));
column_space_map = std_cxx14::make_unique<Epetra_Map>(input_col_map);
graph->OptimizeStorage();
AssertDimension(sparsity_pattern.n_cols(),
- static_cast<size_type>(
- TrilinosWrappers::n_global_cols(*graph)));
+ TrilinosWrappers::n_global_cols(*graph));
matrix = std_cxx14::make_unique<Epetra_FECrsMatrix>(Copy, *graph, false);
}
indices.size(),
n_indices,
indices.data());
- AssertDimension(static_cast<unsigned int>(n_indices), indices.size());
+ AssertDimension(n_indices, indices.size());
for (TrilinosWrappers::types::int_type i = 0; i < n_indices; ++i)
std::cout << indices[i] << " ";
src,
dst);
const size_type dst_local_size = internal::end(dst) - internal::begin(dst);
- AssertDimension(dst_local_size,
- static_cast<size_type>(matrix->RangeMap().NumMyPoints()));
+ AssertDimension(dst_local_size, matrix->RangeMap().NumMyPoints());
const size_type src_local_size = internal::end(src) - internal::begin(src);
- AssertDimension(src_local_size,
- static_cast<size_type>(matrix->DomainMap().NumMyPoints()));
+ AssertDimension(src_local_size, matrix->DomainMap().NumMyPoints());
Epetra_MultiVector tril_dst(
View, matrix->RangeMap(), internal::begin(dst), dst_local_size, 1);
dst,
src);
const size_type dst_local_size = internal::end(dst) - internal::begin(dst);
- AssertDimension(dst_local_size,
- static_cast<size_type>(matrix->DomainMap().NumMyPoints()));
+ AssertDimension(dst_local_size, matrix->DomainMap().NumMyPoints());
const size_type src_local_size = internal::end(src) - internal::begin(src);
- AssertDimension(src_local_size,
- static_cast<size_type>(matrix->RangeMap().NumMyPoints()));
+ AssertDimension(src_local_size, matrix->RangeMap().NumMyPoints());
Epetra_MultiVector tril_dst(
View, matrix->DomainMap(), internal::begin(dst), dst_local_size, 1);
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorDomainMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorRangeMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorRangeMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorDomainMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorRangeMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorDomainMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorDomainMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,
// Duplicated from TrilinosWrappers::SparseMatrix::vmult
const size_type i_local_size = i->end() - i->begin();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- first_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, first_op_init_map.NumMyPoints());
const Epetra_Map &second_op_init_map = second_op.OperatorRangeMap();
- AssertDimension(i_local_size,
- static_cast<size_type>(
- second_op_init_map.NumMyPoints()));
+ AssertDimension(i_local_size, second_op_init_map.NumMyPoints());
(void)second_op_init_map;
Intermediate tril_int(View,
first_op_init_map,