]> https://gitweb.dealii.org/ - dealii.git/commitdiff
address comments 13892/head
authorJiaqi Zhang <jiaqi2@clemson.edu>
Thu, 2 Jun 2022 13:31:13 +0000 (09:31 -0400)
committerJiaqi Zhang <jiaqi2@clemson.edu>
Thu, 2 Jun 2022 13:31:13 +0000 (09:31 -0400)
examples/step-81/step-81.cc

index c47b790e24c5e6d8425ad8a82e2e371ffe4d4045..7be44e5f7a2fdc236a5e96dc3b806489a1f352e0 100644 (file)
@@ -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<double>(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<double>(1.0, s_bar);
+        return {1.0, s_bar};
       }
     else
       {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.