From b73ac85a7fcf89b46b33630cfaeb6a12920a670f Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 9 May 2019 09:08:16 -0400 Subject: [PATCH] step-62: Fix adding real and complex numbers --- examples/step-62/step-62.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.); } -- 2.39.5