]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add the slit domain to the possible ones.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Sep 1999 08:02:08 +0000 (08:02 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Sep 1999 08:02:08 +0000 (08:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@1730 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/poisson/problem.cc
tests/big-tests/poisson/problem.cc

index 160c6e4a66bec7925acb4abb32ebd8c6a63bf88e..09ea3ce09a759f4f84c0f94f3f259bed7339a8fd 100644 (file)
@@ -304,7 +304,7 @@ void PoissonProblem<dim>::declare_parameters (ParameterHandler &prm) {
   if (dim>=2)
     prm.declare_entry ("Test run", "zoom in",
                       Patterns::Selection("tensor|zoom in|ball|curved line|"
-                                         "random|jump|L-region"));
+                                         "random|jump|L-region|slit domain"));
   else
     prm.declare_entry ("Test run", "zoom in",
                       Patterns::Selection("tensor|zoom in|random"));
@@ -339,10 +339,12 @@ bool PoissonProblem<dim>::make_grid (ParameterHandler &prm) {
            else
              if (test=="L-region") test_case = 7;
              else
-               {
-                 cerr << "This test seems not to be implemented!" << endl;
-                 return false;
-               };
+               if (test=="slit domain") test_case = 8;
+               else
+                 {
+                   cerr << "This test seems not to be implemented!" << endl;
+                   return false;
+                 };
 
   switch (test_case) 
     {
@@ -396,6 +398,11 @@ bool PoissonProblem<dim>::make_grid (ParameterHandler &prm) {
            tria->set_boundary (0, *boundary);
            GridGenerator::hyper_L (*tria);
            break;
+      case 8:
+           boundary = new StraightBoundary<dim>();
+           tria->set_boundary (0, *boundary);
+           GridGenerator::hyper_cube_slit (*tria);         
+           break;
       default:
            return false;
     };
index 160c6e4a66bec7925acb4abb32ebd8c6a63bf88e..09ea3ce09a759f4f84c0f94f3f259bed7339a8fd 100644 (file)
@@ -304,7 +304,7 @@ void PoissonProblem<dim>::declare_parameters (ParameterHandler &prm) {
   if (dim>=2)
     prm.declare_entry ("Test run", "zoom in",
                       Patterns::Selection("tensor|zoom in|ball|curved line|"
-                                         "random|jump|L-region"));
+                                         "random|jump|L-region|slit domain"));
   else
     prm.declare_entry ("Test run", "zoom in",
                       Patterns::Selection("tensor|zoom in|random"));
@@ -339,10 +339,12 @@ bool PoissonProblem<dim>::make_grid (ParameterHandler &prm) {
            else
              if (test=="L-region") test_case = 7;
              else
-               {
-                 cerr << "This test seems not to be implemented!" << endl;
-                 return false;
-               };
+               if (test=="slit domain") test_case = 8;
+               else
+                 {
+                   cerr << "This test seems not to be implemented!" << endl;
+                   return false;
+                 };
 
   switch (test_case) 
     {
@@ -396,6 +398,11 @@ bool PoissonProblem<dim>::make_grid (ParameterHandler &prm) {
            tria->set_boundary (0, *boundary);
            GridGenerator::hyper_L (*tria);
            break;
+      case 8:
+           boundary = new StraightBoundary<dim>();
+           tria->set_boundary (0, *boundary);
+           GridGenerator::hyper_cube_slit (*tria);         
+           break;
       default:
            return false;
     };

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.