From 0cc691a8657dd6d309e5d01f85588ff085528de4 Mon Sep 17 00:00:00 2001 From: David Schneider Date: Tue, 7 Nov 2023 16:25:22 +0100 Subject: [PATCH] Modernize syntax fo a few static casts --- include/adapter/boundary_mass_operator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/adapter/boundary_mass_operator.h b/include/adapter/boundary_mass_operator.h index 655d0cd..1d70f45 100644 --- a/include/adapter/boundary_mass_operator.h +++ b/include/adapter/boundary_mass_operator.h @@ -112,7 +112,7 @@ namespace MatrixFreeOperators VectorType &diagonal_vector = this->diagonal_entries->get_vector(); this->initialize_dof_vector(inverse_diagonal_vector); this->initialize_dof_vector(diagonal_vector); - inverse_diagonal_vector = Number(1.); + inverse_diagonal_vector = static_cast(1.); apply_add(diagonal_vector, inverse_diagonal_vector); this->set_constrained_entries_to_one(diagonal_vector); @@ -124,7 +124,7 @@ namespace MatrixFreeOperators { if (inverse_diagonal_vector.local_element(i) > 0) inverse_diagonal_vector.local_element(i) = - Number(1.) / inverse_diagonal_vector.local_element(i); + static_cast(1.) / inverse_diagonal_vector.local_element(i); } inverse_diagonal_vector.update_ghost_values();