const auto &entries = *entries_ptr;
const types::global_dof_index n_entries = entries.size();
if (n_entries == 1 &&
- std::abs(entries[0].second - 1.) <
+ std::abs(entries[0].second -
+ typename Number::value_type(1.)) <
100 * std::numeric_limits<double>::epsilon())
{
current_dof = entries[0].first;
this->update_ghost_values(*vec_fine_ptr);
if (use_dst_inplace == false)
- *vec_coarse_ptr = 0.0;
+ *vec_coarse_ptr = Number(0.0);
this->zero_out_ghost_values(
*vec_coarse_ptr); // since we might add into the
(src_ghosts_have_been_set == false)))
this->update_ghost_values(*vec_fine_ptr);
- *vec_coarse_ptr = 0.0;
+ *vec_coarse_ptr = Number(0.0);
AlignedVector<VectorizedArrayType> evaluation_data_fine;
AlignedVector<VectorizedArrayType> evaluation_data_coarse;
VectorType &dst,
const VectorType &src) const
{
- dst = 0;
+ dst = Number(0.0);
prolongate_and_add(to_level, dst, src);
}
{
for (unsigned int j = 0; j < n_entries; ++j)
result += evaluation_point_results_temp[ptr[i] + j];
- result /= n_entries;
+ result /= Number(n_entries);
}
evaluation_point_results.push_back(result);
}
}
else
{
- evaluation_point_results[j] = {};
+ evaluation_point_results[j] = value_type();
for (unsigned int i = this->level_dof_indices_fine_ptrs[j];
i < this->level_dof_indices_fine_ptrs[j + 1];
if (n_entries == 0)
continue;
- evaluation_point_results[i] /= n_entries;
+ evaluation_point_results[i] /= Number(n_entries);
}
}