Base<dim,Number>::vmult (LinearAlgebra::distributed::Vector<Number> &dst,
const LinearAlgebra::distributed::Vector<Number> &src) const
{
- dst = 0;
+ dst = Number(0.);
vmult_add (dst, src);
}
adjust_ghost_range_if_necessary(src);
adjust_ghost_range_if_necessary(dst);
- dst = 0;
+ dst = Number(0.);
if (!have_interface_matrices)
return;
adjust_ghost_range_if_necessary(src);
adjust_ghost_range_if_necessary(dst);
- dst = 0;
+ dst = Number(0.);
if (!have_interface_matrices)
return;
Base<dim,Number>::Tvmult (LinearAlgebra::distributed::Vector<Number> &dst,
const LinearAlgebra::distributed::Vector<Number> &src) const
{
- dst = 0;
+ dst = Number(0.);
Tvmult_add (dst,src);
}
LinearAlgebra::distributed::Vector<Number> ones;
this->initialize_dof_vector(ones);
this->initialize_dof_vector(inverse_diagonal_vector);
- ones = 1.;
+ ones = Number(1.);
apply_add(inverse_diagonal_vector, ones);
this->set_constrained_entries_to_one(inverse_diagonal_vector);
ExcDimensionMismatch(fe.n_components(), rhs_function.n_components));
Assert (rhs_vector.size() == dof_handler.n_dofs(),
ExcDimensionMismatch(rhs_vector.size(), dof_handler.n_dofs()));
- rhs_vector = 0;
+ rhs_vector = typename VectorType::value_type(0.);
UpdateFlags update_flags = UpdateFlags(update_values |
update_quadrature_points |
// ---------------------------------------------------------------------
-for (VEC : SERIAL_VECTORS ; deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS)
+for (VEC : REAL_SERIAL_VECTORS ; deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS)
{
#if deal_II_dimension <= deal_II_space_dimension
namespace VectorTools \{