]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Convert tutorial programs to use DEAL_II_NOT_IMPLEMENTED(). 16562/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 30 Jan 2024 03:53:48 +0000 (20:53 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 30 Jan 2024 03:53:48 +0000 (20:53 -0700)
18 files changed:
examples/doxygen/step_3_mixed.cc
examples/step-18/step-18.cc
examples/step-21/step-21.cc
examples/step-25/step-25.cc
examples/step-33/step-33.cc
examples/step-34/step-34.cc
examples/step-35/step-35.cc
examples/step-42/step-42.cc
examples/step-46/step-46.cc
examples/step-50/step-50.cc
examples/step-51/step-51.cc
examples/step-63/step-63.cc
examples/step-67/step-67.cc
examples/step-74/step-74.cc
examples/step-75/step-75.cc
examples/step-76/step-76.cc
examples/step-78/step-78.cc
examples/step-82/step-82.cc

index ab1f435cb06e5ed789257979bb4f262723a0f645..a9fcbfc6832a23fcc3e4725324f0da6c0854b361 100644 (file)
@@ -252,7 +252,7 @@ void Step3::setup_system()
       else if (cell->reference_cell() == ReferenceCells::Quadrilateral)
         cell->set_active_fe_index(1);
       else
-        Assert(false, ExcNotImplemented());
+        DEAL_II_NOT_IMPLEMENTED();
     }
 
   dof_handler.distribute_dofs(fe);
index a9deb5607a9eef6dae3be00c5b33adc1715e7c18..6466819be97886ae1ce22c542ac8f7990a38628b 100644 (file)
@@ -1177,7 +1177,7 @@ namespace Step18
           solution_names.emplace_back("delta_z");
           break;
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
 
     data_out.add_data_vector(incremental_displacement, solution_names);
index 1cb740cf90769a7681537db17e4285bee3b72935..299da5f64345b52235b874f37cd3a1fd3659fe55 100644 (file)
@@ -995,7 +995,7 @@ namespace Step21
           break;
 
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
 
     DataOut<dim> data_out;
index d745bbc918a3349d664b4558edba7512283e95ec..9419b4dbfe62253c4118354852163f5b8596ebd2 100644 (file)
@@ -203,7 +203,7 @@ namespace Step25
             }
 
           default:
-            Assert(false, ExcNotImplemented());
+            DEAL_II_NOT_IMPLEMENTED();
             return -1e8;
         }
     }
index 452fadc2111ad7f2de2fdadeebd032f5a48f36b5..e959af296cc28f87f4dc871994b8138b1e286c9b 100644 (file)
@@ -418,7 +418,7 @@ namespace Step33
               }
 
             default:
-              Assert(false, ExcNotImplemented());
+              DEAL_II_NOT_IMPLEMENTED();
           }
     }
 
@@ -2054,7 +2054,7 @@ namespace Step33
           alpha = face_diameter / (2.0 * parameters.time_step);
           break;
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
           alpha = 1;
       }
 
@@ -2210,7 +2210,7 @@ namespace Step33
           }
       }
 
-    Assert(false, ExcNotImplemented());
+    DEAL_II_NOT_IMPLEMENTED();
     return {0, 0};
   }
 
index f65bdfe4c16668b8d960b8e118bfd8653dab7f30..de5290dc413971180f941eaa95afc7b3b0ea1205 100644 (file)
@@ -505,7 +505,7 @@ namespace Step34
           break;
 
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
 
     GridIn<dim - 1, dim> gi;
index 5b2e4755bc49f29bfafb511011196b2e4e223a4b..7890177a8dc2e362ad0ff50b1059cc4ddc020aa0 100644 (file)
@@ -1079,7 +1079,7 @@ namespace Step35
                     boundary_values);
                   break;
                 default:
-                  Assert(false, ExcNotImplemented());
+                  DEAL_II_NOT_IMPLEMENTED();
               }
           }
         MatrixTools::apply_boundary_values(boundary_values,
@@ -1260,7 +1260,7 @@ namespace Step35
           pres_n += phi_n;
           break;
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       };
   }
 
index 4b5c465f33e1953b7c7592f8b9c2e84553641f44..fb7ba226d1fc6e39e37af5c938aafa83e699df7b 100644 (file)
@@ -385,7 +385,7 @@ namespace Step42
             return 1000;
         }
 
-      Assert(false, ExcNotImplemented());
+      DEAL_II_NOT_IMPLEMENTED();
       return 1e9; // an unreasonable value; ignored in debug mode because of the
                   // preceding Assert
     }
@@ -559,7 +559,7 @@ namespace Step42
             return z_surface + 0.999 - input_obstacle.get_value(p[0], p[1]);
         }
 
-      Assert(false, ExcNotImplemented());
+      DEAL_II_NOT_IMPLEMENTED();
       return 1e9; // an unreasonable value; ignored in debug mode because of the
                   // preceding Assert
     }
index 1979ffd1806090623ef1c34dd0a5dd5cb99158bd..04a75d75eeef34b85134d25b3917dc68fa79343a 100644 (file)
@@ -182,7 +182,7 @@ namespace Step46
           case 3:
             return std::sin(numbers::PI * p[0]) * std::sin(numbers::PI * p[1]);
           default:
-            Assert(false, ExcNotImplemented());
+            DEAL_II_NOT_IMPLEMENTED();
         }
 
     return 0;
@@ -306,7 +306,7 @@ namespace Step46
         else if (cell_is_in_solid_domain(cell))
           cell->set_active_fe_index(1);
         else
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
   }
 
index 7372929a3cb3492e27b295dd35dcb9d949ff23fd..2239385f6c7b3fd277bee3b8bbb5549a471769cb 100644 (file)
@@ -553,7 +553,7 @@ void LaplaceProblem<dim, degree>::setup_system()
         }
 
       default:
-        Assert(false, ExcNotImplemented());
+        DEAL_II_NOT_IMPLEMENTED();
     }
 }
 
@@ -711,7 +711,7 @@ void LaplaceProblem<dim, degree>::setup_multigrid()
         }
 
       default:
-        Assert(false, ExcNotImplemented());
+        DEAL_II_NOT_IMPLEMENTED();
     }
 }
 
index 2dbdf85b144ec2cbc19d33c1ff53db9409ca3fb8..79de918418d8b5511092bacddbfeb6b2c9db5fbd 100644 (file)
@@ -218,7 +218,7 @@ namespace Step51
             convection[2] = 1;
             break;
           default:
-            Assert(false, ExcNotImplemented());
+            DEAL_II_NOT_IMPLEMENTED();
         }
       return convection;
     }
@@ -1208,7 +1208,7 @@ namespace Step51
           filename = "solution-adaptive";
           break;
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
 
     std::string face_out(filename);
@@ -1332,7 +1332,7 @@ namespace Step51
 
           default:
             {
-              Assert(false, ExcNotImplemented());
+              DEAL_II_NOT_IMPLEMENTED();
             }
         }
 
index 68c031789a60d1394cfe5d92fda4c3c012c49a04..187708f77eb627b8c291647265c541b3108c7342 100644 (file)
@@ -633,7 +633,7 @@ namespace Step63
               DoFRenumbering::random(dof_handler, level);
           }
         else
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
 
     // The rest of the function just sets up data structures. The last
index ac4ad6163776446875677f355a8450b9e5ea1cc9..9cdd9064352520941c33a1dd7ec9a9b10abea1c6 100644 (file)
@@ -206,7 +206,7 @@ namespace Euler_DG
           }
 
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
           return 0.;
       }
   }
@@ -615,7 +615,7 @@ namespace Euler_DG
 
         default:
           {
-            Assert(false, ExcNotImplemented());
+            DEAL_II_NOT_IMPLEMENTED();
             return {};
           }
       }
@@ -2011,7 +2011,7 @@ namespace Euler_DG
           }
 
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
 
     triangulation.refine_global(n_global_refinements);
index 9bb0527fe70a019239191e8155373983c1cac19f..b615869687c35f271f077fded2263f81c4155db5 100644 (file)
@@ -996,7 +996,7 @@ namespace Step74
 
             default:
               {
-                Assert(false, ExcNotImplemented());
+                DEAL_II_NOT_IMPLEMENTED();
               }
           }
 
index 3a0416154b5636c40297991604413ecfe522137a..bda81ee71b4bae59fa0e16e7281f10b7829e8c05 100644 (file)
@@ -377,7 +377,7 @@ namespace Step75
   template <int dim, typename number>
   number LaplaceOperator<dim, number>::el(unsigned int, unsigned int) const
   {
-    Assert(false, ExcNotImplemented());
+    DEAL_II_NOT_IMPLEMENTED();
     return 0;
   }
 
index 6a1f2f7888cd21b7ccabb684a370a8404ee85f5d..0921688438d9915fdcaad0bbb8baabc7bd0b6256 100644 (file)
@@ -259,7 +259,7 @@ namespace Euler_DG
           }
 
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
           return 0.;
       }
   }
@@ -380,7 +380,7 @@ namespace Euler_DG
 
         default:
           {
-            Assert(false, ExcNotImplemented());
+            DEAL_II_NOT_IMPLEMENTED();
             return {};
           }
       }
@@ -526,7 +526,7 @@ namespace Euler_DG
       }
     else
       {
-        Assert(false, ExcNotImplemented());
+        DEAL_II_NOT_IMPLEMENTED();
       }
 #else
     (void)subcommunicator;
@@ -1399,7 +1399,7 @@ namespace Euler_DG
           }
 
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
 
     triangulation.refine_global(n_global_refinements);
index 383d1433cfec6f5487e0275dab00080d674f8151..7a44646b3e3faffe93f2c9aa49af7941d6c99e79 100644 (file)
@@ -675,7 +675,7 @@ namespace BlackScholesSolver
           conv_filename += "-q2";
           break;
         default:
-          Assert(false, ExcNotImplemented());
+          DEAL_II_NOT_IMPLEMENTED();
       }
     conv_filename += ".tex";
     std::ofstream table_file(conv_filename);
index 7b663d03bf2000419863237ae1ec25150bbb46b9..a73a9c09a6e9c19e1ea1a83ff6c7c89e5073654f 100644 (file)
@@ -193,7 +193,7 @@ namespace Step82
                          Utilities::fixed_power<2>(p[0] * (1.0 - p[0]));
       }
     else
-      Assert(false, ExcNotImplemented());
+      DEAL_II_NOT_IMPLEMENTED();
 
     return return_value;
   }
@@ -241,7 +241,7 @@ namespace Step82
           p[0] * (1.0 - p[0]) * p[1] * (1.0 - p[1]) * p[2] * (1.0 - p[2]));
       }
     else
-      Assert(false, ExcNotImplemented());
+      DEAL_II_NOT_IMPLEMENTED();
 
     return return_value;
   }
@@ -282,7 +282,7 @@ namespace Step82
           Utilities::fixed_power<2>(p[0] * (1.0 - p[0]) * p[1] * (1.0 - p[1]));
       }
     else
-      Assert(false, ExcNotImplemented());
+      DEAL_II_NOT_IMPLEMENTED();
 
     return return_gradient;
   }
@@ -339,7 +339,7 @@ namespace Step82
           Utilities::fixed_power<2>(p[0] * (1.0 - p[0]) * p[1] * (1.0 - p[1]));
       }
     else
-      Assert(false, ExcNotImplemented());
+      DEAL_II_NOT_IMPLEMENTED();
 
     return return_hessian;
   }

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.