]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a couple of warnings by xlC.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Jan 2009 17:35:42 +0000 (17:35 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Jan 2009 17:35:42 +0000 (17:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@18100 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_handler.cc
deal.II/deal.II/source/grid/grid_generator.cc

index 30ddd82010f99a753ca790e5e03ab7a8fdb88b64..5d63f8aa07fd3a0bc189b842d7c0499933a8dc19 100644 (file)
@@ -2032,6 +2032,7 @@ DoFHandler<dim,spacedim>::max_couplings_between_boundary_dofs () const
                    8*selected_fe->dofs_per_quad);
       default:
            Assert (false, ExcNotImplemented());
+           return numbers::invalid_unsigned_int;
     }
 }
 
index abf8c70ad024ef62fa37b1e8df91a5ca3df3fdc3..c7c28bc9261ca24444e73b65b22c4475163ee33e 100644 (file)
@@ -418,7 +418,7 @@ GridGenerator::subdivided_hyper_rectangle (
                                   // are >= 1, and calculate deltas
                                   // convert repetitions from double
                                   // to int by taking the ceiling.
-  double delta[dim];
+  Point<dim> delta;
   
   for (unsigned int i=0; i<dim; ++i)
     {

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.