From: Daniel Arndt Date: Thu, 9 May 2019 13:08:16 +0000 (-0400) Subject: step-62: Fix adding real and complex numbers X-Git-Tag: v9.1.0-rc1~106^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8052%2Fhead;p=dealii.git step-62: Fix adding real and complex numbers --- diff --git a/examples/step-62/step-62.cc b/examples/step-62/step-62.cc index 0408ed44ae..31d171c2fc 100644 --- a/examples/step-62/step-62.cc +++ b/examples/step-62/step-62.cc @@ -477,8 +477,8 @@ namespace step62 } } - return 1 + std::max(calculated_pml_x_coeff, calculated_pml_y_coeff) * - std::complex(0, 1); + return 1. + std::max(calculated_pml_x_coeff, calculated_pml_y_coeff) * + std::complex(0., 1.); }