Skip to content

Commit

Permalink
Modernize syntax fo a few static casts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidscn committed Nov 7, 2023
1 parent 24e1111 commit 0cc691a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/adapter/boundary_mass_operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Number>(1.);
apply_add(diagonal_vector, inverse_diagonal_vector);

this->set_constrained_entries_to_one(diagonal_vector);
Expand All @@ -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<Number>(1.) / inverse_diagonal_vector.local_element(i);
}

inverse_diagonal_vector.update_ghost_values();
Expand Down

0 comments on commit 0cc691a

Please sign in to comment.