]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace some scalar assignments Vector=0 by clear().
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Jan 2002 08:54:54 +0000 (08:54 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Jan 2002 08:54:54 +0000 (08:54 +0000)
Add some std::s

git-svn-id: https://svn.dealii.org/trunk@5382 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function_lib_cutoff.cc

index 776c566318e7752edb55b5ec205496e0b54aea85..a872a1c07eac6494a48b5f094fe0cbcd6c7e3882 100644 (file)
@@ -80,7 +80,7 @@ namespace Functions
       for (unsigned int k=0;k<values.size();++k)
        values[k] = (center.distance(points[k])<radius) ? 1. : 0.;
     else
-      fill (values.begin(), values.end(), 0.);
+      std::fill (values.begin(), values.end(), 0.);
   }
 
   
@@ -100,7 +100,7 @@ namespace Functions
          values[k] = val;
        else
          {
-           values[k] = 0.;
+           values[k].clear ();
            values[k](selected) = val;
          }
       }
@@ -150,7 +150,7 @@ namespace Functions
          values[i] = ((d<radius) ? (radius-d) : 0.);
        }
     else
-      fill (values.begin(), values.end(), 0.);
+      std::fill (values.begin(), values.end(), 0.);
   }
 
 
@@ -172,7 +172,7 @@ namespace Functions
          values[k] = val;
        else
          {
-           values[k] = 0.;
+           values[k].clear ();
            values[k](selected) = val;
          }
       }
@@ -234,7 +234,7 @@ namespace Functions
            }
        }
     else
-      fill (values.begin(), values.end(), 0.);
+      std::fill (values.begin(), values.end(), 0.);
   }
 
 
@@ -264,7 +264,7 @@ namespace Functions
          values[k] = val;
        else
          {
-           values[k] = 0.;
+           values[k].clear ();
            values[k](selected) = val;
          }
       }

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.