// write out at most 20 equispaced
// elements of the vector
for (unsigned int i=0; i<v.size(); i+=std::max(static_cast<typename VECTOR::size_type>(1),
- v.size()/20))
+ static_cast<typename VECTOR::size_type>(v.size()/20)))
deallog << v(i) << ' ';
deallog << std::endl;
}
// owned range by 50 on each side
IndexSet locally_relevant_range (vec.size());
locally_relevant_range.add_range (std::max<int> (100*myid-50, 0),
- std::min (100*myid+150, vec.size()));
+ std::min (static_cast<types::global_dof_index>(100*myid+150), vec.size()));
ConstraintMatrix cm (locally_relevant_range);
// add constraints that constrain an element in the middle of the
// owned range by 50 on each side
IndexSet locally_relevant_range (vec.size());
locally_relevant_range.add_range (std::max<int> (100*myid-50, 0),
- std::min (100*myid+150, vec.block(0).size()));
+ std::min (static_cast<types::global_dof_index>(100*myid+150), vec.block(0).size()));
locally_relevant_range.add_range (vec.block(0).size()+std::max<int> (100*myid-50, 0),
- vec.block(0).size()+std::min (100*myid+150, vec.block(0).size()));
+ vec.block(0).size()+std::min (static_cast<types::global_dof_index>(100*myid+150), vec.block(0).size()));
ConstraintMatrix cm (locally_relevant_range);
// add constraints that constrain an element in the middle of the
// owned range by 50 on each side
IndexSet locally_relevant_range (vec.size());
locally_relevant_range.add_range (std::max<int> (100*myid-50, 0),
- std::min (100*myid+150, vec.size()));
+ std::min (static_cast<types::global_dof_index>(100*myid+150), vec.size()));
ConstraintMatrix cm (locally_relevant_range);
// add constraints that constrain an element in the middle of the
// owned range by 50 on each side
IndexSet locally_relevant_range (vec.size());
locally_relevant_range.add_range (std::max<int> (100*myid-50, 0),
- std::min (100*myid+150, vec.size()));
+ std::min (static_cast<types::global_dof_index>(100*myid+150), vec.size()));
ConstraintMatrix cm (locally_relevant_range);
// add constraints that constrain an element in the middle of the
// owned range by 50 on each side
IndexSet locally_relevant_range (vec.size());
locally_relevant_range.add_range (std::max<int> (100*myid-50, 0),
- std::min (100*myid+150, vec.block(0).size()));
+ std::min (static_cast<types::global_dof_index>(100*myid+150), vec.block(0).size()));
locally_relevant_range.add_range (vec.block(0).size()+std::max<int> (100*myid-50, 0),
- vec.block(0).size()+std::min (100*myid+150, vec.block(0).size()));
+ vec.block(0).size()+std::min (static_cast<types::global_dof_index>(100*myid+150), vec.block(0).size()));
ConstraintMatrix cm (locally_relevant_range);
// add constraints that constrain an element in the middle of the
// owned range by 50 on each side
IndexSet locally_relevant_range (vec.size());
locally_relevant_range.add_range (std::max<int> (100*myid-50, 0),
- std::min (100*myid+150, vec.size()));
+ std::min (static_cast<types::global_dof_index>(100*myid+150), vec.size()));
ConstraintMatrix cm (locally_relevant_range);
// add constraints that constrain an element in the middle of the
FullMatrix<double> cell_matrix (dofs_per_cell, dofs_per_cell);
Vector<double> cell_rhs (dofs_per_cell);
- std::vector<unsigned int> local_dof_indices (dofs_per_cell);
+ std::vector<types::global_dof_index> local_dof_indices (dofs_per_cell);
typename DoFHandler<dim>::active_cell_iterator
cell = dof_handler.begin_active(),
FullMatrix<double> cell_matrix (dofs_per_cell, dofs_per_cell);
Vector<double> cell_rhs (dofs_per_cell);
- std::vector<unsigned int> local_dof_indices (dofs_per_cell);
+ std::vector<types::global_dof_index> local_dof_indices (dofs_per_cell);
typename DoFHandler<dim>::active_cell_iterator
cell = dof_handler_precondition.begin_active(),