]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a more interesting testcase.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 Feb 2011 02:17:20 +0000 (02:17 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 Feb 2011 02:17:20 +0000 (02:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@23388 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 09a03a4c2339635e8690ea428cc432cfd4298fd1..b9bae969831d0056462dd86e7b8f7a48e93ff660 100644 (file)
@@ -105,8 +105,9 @@ BoundaryValues<dim>::value (const Point<dim>  &p,
   Assert (component < this->n_components,
          ExcIndexRange (component, 0, this->n_components));
 
-  if (component == 0)
-    return 1;
+  if (component == 1)
+    return std::sin(2*numbers::PI*p[0]);
+  
   return 0;
 }
 
@@ -192,11 +193,6 @@ void StokesProblem<dim>::setup_dofs ()
     component_mask[dim] = false;
     DoFTools::make_hanging_node_constraints (dof_handler,
                                             constraints);
-    VectorTools::interpolate_boundary_values (dof_handler,
-                                             0,
-                                             ZeroFunction<dim>(dim+1),
-                                             constraints,
-                                             component_mask);
     VectorTools::interpolate_boundary_values (dof_handler,
                                              1,
                                              BoundaryValues<dim>(),

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.