]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove unnecessary "using namespace" directives from the tutorials. 9732/head
authorReza Rastak <rastak@stanford.edu>
Wed, 25 Mar 2020 17:14:16 +0000 (10:14 -0700)
committerReza Rastak <rastak@stanford.edu>
Fri, 27 Mar 2020 05:02:27 +0000 (22:02 -0700)
20 files changed:
examples/step-14/step-14.cc
examples/step-15/step-15.cc
examples/step-20/step-20.cc
examples/step-21/step-21.cc
examples/step-22/step-22.cc
examples/step-23/step-23.cc
examples/step-24/step-24.cc
examples/step-25/step-25.cc
examples/step-26/step-26.cc
examples/step-27/step-27.cc
examples/step-30/step-30.cc
examples/step-34/step-34.cc
examples/step-35/step-35.cc
examples/step-38/step-38.cc
examples/step-44/step-44.cc
examples/step-46/step-46.cc
examples/step-51/step-51.cc
examples/step-54/step-54.cc
examples/step-56/step-56.cc
examples/step-57/step-57.cc

index 52623947b5278fff32b6003c8af827c1b6558550..f4144a66a9b26b71f9c137b59fcd887cc4916655 100644 (file)
@@ -2812,7 +2812,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step14;
 
       // Describe the problem we want to solve here by passing a descriptor
index ede2605d39553d546f77499f7a5bbea04f7b1974..8f19362f410a46427b7e12eebcd616310485fea9 100644 (file)
@@ -696,7 +696,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step15;
 
       MinimalSurfaceProblem<2> laplace_problem_2d;
index a629c3b5aab42e7819c6168e7392ca2b9bfa4241..5735bc81b4ec9eaa1bd6a6e3604ab773cf29a727 100644 (file)
@@ -817,7 +817,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step20;
 
       const unsigned int     fe_degree = 0;
index 9a188bbeeb7eb19eb8034bd75987e6b506aa676c..ef1d9eabdd3832a795697799bd8d5acc7e1d6270 100644 (file)
@@ -1174,7 +1174,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step21;
 
       TwoPhaseFlowProblem<2> two_phase_flow_problem(0);
index 93551f5812926b25011cd91419589909444a229c..71576aa9c039f182f8db53de65b9170b91a02782 100644 (file)
@@ -1066,7 +1066,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step22;
 
       StokesProblem<2> flow_problem(1);
index 152ac538e637076d7423612f2839c4a4a2b83393..9fe93cf14ca9835c4cd5f2e7887b57332e642013 100644 (file)
@@ -605,7 +605,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step23;
 
       WaveEquation<2> wave_equation_solver;
index 611e41c205ecb2b877d822f8c4b9996d197ac81b..e56ca18bcc0043d7f9faf8085250e588fdbd5da2 100644 (file)
@@ -535,7 +535,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step24;
 
       TATForwardProblem<2> forward_problem_solver;
index f9ff02df56894e52e1cf54736b9709cfc65b53ea..057d813f8d25605175b8f268e2d10e123846ea21 100644 (file)
@@ -688,7 +688,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step25;
 
       SineGordonProblem<1> sg_problem;
index 16c260a93bc594f47c33c3181f1e4c3df77bf982..cc09e8e8358575e340dff13a27c041ef9e4decb2 100644 (file)
@@ -655,7 +655,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step26;
 
       HeatEquation<2> heat_equation_solver;
index 0f7aafd171c36f6f05ac450b1687480831c082bb..3152116caef08774557be8646962613017420cf8 100644 (file)
@@ -738,7 +738,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step27;
 
       LaplaceProblem<2> laplace_problem;
index 9ad0a56f27f2b276ab78c61de1de9ef62df313a8..d3cd72b61292672c3d2cd6a41b551b951bb80e84 100644 (file)
@@ -1000,7 +1000,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step30;
 
       // If you want to run the program in 3D, simply change the following
index f4f566b9c6254de9cd4d46cf57e116a419eef431..cd77ce935f162af03db7c3e9106bdb98b7e1cc8e 100644 (file)
@@ -1078,7 +1078,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step34;
 
       const unsigned int degree         = 1;
index 78ddf40a5a35dcdf65ad01fa2dddca7745239d89..8a7f0b6bfe81df8b238718bd0040e2af3f51b452 100644 (file)
@@ -1429,7 +1429,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step35;
 
       RunTimeParameters::Data_Storage data;
index 27e54483f156ce41621629a071f4144501150b05..bc2644d047e7dbce47b5eb8f2a231686a16e4e44 100644 (file)
@@ -531,7 +531,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step38;
 
       LaplaceBeltramiProblem<3> laplace_beltrami;
index 31eeefcfdf0a1bccc146bd7bf89952ccffbfa3c8..97b37a7ce1e2dd9c09be223996365b6c2ce5a1b8 100644 (file)
@@ -3398,7 +3398,6 @@ namespace Step44
 // no different to the other tutorials.
 int main()
 {
-  using namespace dealii;
   using namespace Step44;
 
   try
index e9d1ee270a8f16ce8ca4ae9cf5d4791da8edad60..b370c2f780e70306e1b9b22b027fc6d1cf25f54e 100644 (file)
@@ -1033,7 +1033,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step46;
 
       FluidStructureProblem<2> flow_problem(1, 1);
index 57fae64664b5fccb99fa6c28499e7e723e004399..b3bdb43b8183b9829bcca94ba7bb39f88659f92f 100644 (file)
@@ -1396,8 +1396,6 @@ int main()
 
   try
     {
-      using namespace dealii;
-
       // Now for the three calls to the main class in complete analogy to
       // step-7.
       {
index db90d83c85e89a9a083f0ebbc9bf37d06488ec47..e21210a6c1067d5bb0ee0ff06614fb1ee554fd07 100644 (file)
@@ -386,7 +386,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step54;
 
       const std::string in_mesh_filename = "input/initial_mesh_3d.vtk";
index 19a9b3ab997e6a627b4b7e5c038af1530fc52316..e02b9780c11bcd705eae6d41a19ef5a0646fb85a 100644 (file)
@@ -1111,7 +1111,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step56;
 
       const int degree = 1;
index a8b8911cb41393d6518be2f9b418b45643b8fee6..31327e3295db529d4964b51cc411f6a5ee4a0256 100644 (file)
@@ -838,7 +838,6 @@ int main()
 {
   try
     {
-      using namespace dealii;
       using namespace Step57;
 
       StationaryNavierStokes<2> flow(/* degree = */ 1);

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.