]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix bug introduced in last change
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 24 Jan 2008 06:01:20 +0000 (06:01 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 24 Jan 2008 06:01:20 +0000 (06:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@15664 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/flow_function.cc

index 6b80c3b56eccc6bf3c0ed2111868ae2fa5636d06..43de8f27530aa290385ea223663383cf7d6ed10b 100644 (file)
@@ -418,6 +418,13 @@ namespace Functions
          for (unsigned int k=0;k<values[d].size();++k)
            values[d][k] *= -reaction;  
       }
+    else
+      {
+       for (unsigned int d=0;d<dim;++d)
+         for (unsigned int k=0;k<values[d].size();++k)
+           values[d][k] = 0.;  
+      }
+    
     
     for (unsigned int k=0;k<n;++k)
       {

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.