Skip to content

Commit

Permalink
MatrixFree/TensorProductPointKernels: fix compilation with Number = f…
Browse files Browse the repository at this point in the history
…loat
  • Loading branch information
tamiko committed Dec 11, 2024
1 parent 9f8027a commit dc6c87e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/deal.II/matrix_free/tensor_product_point_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ namespace internal
}
else if (dim == 1)
{
const auto x0 = 1. - p[0], x1 = p[0];
const auto x0 = Number(1.) - p[0], x1 = p[0];

if (add)
{
Expand All @@ -1518,7 +1518,8 @@ namespace internal
}
else if (dim == 2)
{
const auto x0 = 1. - p[0], x1 = p[0], y0 = 1. - p[1], y1 = p[1];
const auto x0 = Number(1.) - p[0], x1 = p[0], y0 = Number(1.) - p[1],
y1 = p[1];

const auto test_value_y0 = value * y0;
const auto test_value_y1 = value * y1;
Expand All @@ -1540,8 +1541,8 @@ namespace internal
}
else if (dim == 3)
{
const auto x0 = 1. - p[0], x1 = p[0], y0 = 1. - p[1], y1 = p[1],
z0 = 1. - p[2], z1 = p[2];
const auto x0 = Number(1.) - p[0], x1 = p[0], y0 = Number(1.) - p[1],
y1 = p[1], z0 = Number(1.) - p[2], z1 = p[2];

const auto test_value_z0 = value * z0;
const auto test_value_z1 = value * z1;
Expand Down

0 comments on commit dc6c87e

Please sign in to comment.