]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
don't interpolate boundaries for components with HUGE_VAL value
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 1999 21:09:04 +0000 (21:09 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 1999 21:09:04 +0000 (21:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@1429 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/vectors.cc

index 253f1ec0b169cf7ec0155e3386b1729e48e8041b..87154e5dd11a980d420625c55783c1387d321c89 100644 (file)
@@ -400,8 +400,9 @@ VectorTools<dim>::interpolate_boundary_values (const DoFHandler<dim> &dof,
          {
            pair<unsigned int, unsigned int>
              index = fe.face_system_to_component_index(i);
-                                                   
-           boundary_values[face_dofs[i]] = dof_values[i](index.first);
+           double s = dof_values[i](index.first);
+           if (s != HUGE_VAL)
+             boundary_values[face_dofs[i]] = s;
          }
       }
 }

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.