]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix uninitialized and unused variles in examples 4075/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 17 Mar 2017 10:21:11 +0000 (11:21 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 17 Mar 2017 11:20:15 +0000 (12:20 +0100)
examples/step-14/step-14.cc
examples/step-28/step-28.cc
examples/step-32/step-32.cc
examples/step-33/step-33.cc
examples/step-34/step-34.cc
examples/step-37/step-37.cc
examples/step-44/step-44.cc
examples/step-48/step-48.cc

index d0dd68fc198d44d9659a2bc82b96a63646bc7172..6bcf068688376fc9463a6616c7902e24d618b542 100644 (file)
@@ -2673,6 +2673,7 @@ namespace Step14
               ExcInternalError());
       Assert (neighbor->has_children(),
               ExcInternalError());
+      (void) neighbor;
 
       // Then find out which neighbor the present cell is of the adjacent
       // cell. Note that we will operate on the children of this adjacent
index 10d23917c1681e3b5b08f91a07884a920b1c013c..ce1cef8978f4e4fa6256e5082d21e1e9e84ac9d0 100644 (file)
@@ -168,7 +168,7 @@ namespace Step28
     sigma_s (n_materials, n_groups, n_groups),
     chi (n_materials, n_groups)
   {
-    switch (n_groups)
+    switch (this->n_groups)
       {
       case 2:
       {
index 00e7ee0e1fe71bcc112334d42ba39e8cb0c80028..0dae98879834f6d05484f15feaf8fb3d4127a13e 100644 (file)
@@ -1210,6 +1210,8 @@ namespace Step32
                    (Triangulation<dim>::smoothing_on_refinement |
                     Triangulation<dim>::smoothing_on_coarsening)),
 
+    global_Omega_diameter(0.),
+
     mapping (4),
 
     stokes_fe (FE_Q<dim>(parameters.stokes_velocity_degree),
index 9aa53c9235daa60c8fd0d91eaed1658d658b0e11..f1b6bf2ce880aa4d710816b74187e8f012fcec34 100644 (file)
@@ -1090,12 +1090,20 @@ namespace Step33
     AllParameters<dim>::BoundaryConditions::BoundaryConditions ()
       :
       values (EulerEquations<dim>::n_components)
-    {}
+    {
+      for (unsigned int c=0; c<EulerEquations<dim>::n_components; ++c)
+        kind[c] = EulerEquations<dim>::no_penetration_boundary;
+    }
 
 
     template <int dim>
     AllParameters<dim>::AllParameters ()
       :
+      diffusion_power(0.),
+      time_step(1.),
+      final_time(1.),
+      theta(.5),
+      is_stationary(true),
       initial_conditions (EulerEquations<dim>::n_components)
     {}
 
index 2aedc850a281990bc21617c040f89527f429276f..f86c865de66ac750a65d67a4ecebdf00cacc4af1 100644 (file)
@@ -321,7 +321,12 @@ namespace Step34
     fe(fe_degree),
     dh(tria),
     mapping(mapping_degree, true),
-    wind(dim)
+    wind(dim),
+    singular_quadrature_order(5),
+    n_cycles(4),
+    external_refinement(5),
+    run_in_this_dimension(true),
+    extend_solution(true)
   {}
 
 
index 86d030ecdd6c3d07f9004bc3f3744a87f9388b51..cf933343691ebc0ad05b772a363c0995c8de224c 100644 (file)
@@ -757,6 +757,7 @@ namespace Step37
 #endif
     fe (degree_finite_element),
     dof_handler (triangulation),
+    setup_time(0.),
     pcout (std::cout, Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0),
     // The LaplaceProblem class holds an additional output stream that
     // collects detailed timings about the setup phase. This stream, called
index a849b40864e12aeb2542cf6111021c50d3579a2b..286d8e76b3bba3f68fa9f66fed07bb1bf98bcd54 100644 (file)
@@ -1078,6 +1078,7 @@ namespace Step44
   Solid<dim>::Solid(const std::string &input_file)
     :
     parameters(input_file),
+    vol_reference(0.),
     triangulation(Triangulation<dim>::maximum_smoothing),
     time(parameters.end_time, parameters.delta_t),
     timer(std::cout,
index 40923dd0876e83f61f0bc8e611e74aed08335fbd..433f7e7fb51516d5ad3d36435e8bff98588dca45 100644 (file)
@@ -338,6 +338,7 @@ namespace Step48
     dof_handler (triangulation),
     n_global_refinements (10-2*dim),
     time (-10),
+    time_step(10.),
     final_time (10),
     cfl_number (.1/fe_degree),
     output_timestep_skip (200)

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.