]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make a couple of input arguments 'const'.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 12 Apr 2009 04:01:00 +0000 (04:01 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 12 Apr 2009 04:01:00 +0000 (04:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@18591 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-34/step-34.cc

index bcc37c7d48b54f8641f5bfc7e8557bd7ce8cf160..b4b868c4525733bc8a4511e5a945a601a1ef10b0 100644 (file)
@@ -117,7 +117,7 @@ namespace LaplaceKernel
 {
 template <int dim>
 double single_layer(const Point<dim> &R, 
-                   bool factor_out_2d_singularity = false) {
+                   const bool factor_out_2d_singularity = false) {
     switch(dim) {
     case 2:
         if(factor_out_2d_singularity == true) 
@@ -140,7 +140,7 @@ double single_layer(const Point<dim> &R,
 
 template <int dim>
 Point<dim> double_layer(const Point<dim> &R,
-                       bool factor_out_2d_singularity = false) {
+                       const bool factor_out_2d_singularity = false) {
   switch(dim) {
     case 2:
          if (factor_out_2d_singularity)

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.