]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-62: Fix adding real and complex numbers 8052/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 9 May 2019 13:08:16 +0000 (09:08 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 9 May 2019 13:08:16 +0000 (09:08 -0400)
examples/step-62/step-62.cc

index 0408ed44ae10f57398a4a50e5d07852f64249fc9..31d171c2fc4c398f48297c81bb7e18e43f4e7f14 100644 (file)
@@ -477,8 +477,8 @@ namespace step62
           }
       }
 
-    return 1 + std::max(calculated_pml_x_coeff, calculated_pml_y_coeff) *
-                 std::complex<double>(0, 1);
+    return 1. + std::max(calculated_pml_x_coeff, calculated_pml_y_coeff) *
+                  std::complex<double>(0., 1.);
   }
 
 

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.