From 7c0116c05abea9eb9e60b38e722a2806e10c2cdb Mon Sep 17 00:00:00 2001 From: Jiaqi Zhang Date: Thu, 2 Jun 2022 09:31:13 -0400 Subject: [PATCH] address comments --- examples/step-81/step-81.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/step-81/step-81.cc b/examples/step-81/step-81.cc index c47b790e24..7be44e5f7a 100644 --- a/examples/step-81/step-81.cc +++ b/examples/step-81/step-81.cc @@ -318,7 +318,7 @@ namespace Step81 const double s = strength * ((radius - inner_radius) * (radius - inner_radius)) / ((outer_radius - inner_radius) * (outer_radius - inner_radius)); - return std::complex(1.0, s); + return {1.0, s}; } else { @@ -340,7 +340,7 @@ namespace Step81 (radius - inner_radius)) / (radius * (outer_radius - inner_radius) * (outer_radius - inner_radius)); - return std::complex(1.0, s_bar); + return {1.0, s_bar}; } else { -- 2.39.5