]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
some cleaning up
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Oct 2010 17:35:52 +0000 (17:35 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Oct 2010 17:35:52 +0000 (17:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@22458 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_bdm.cc
deal.II/deal.II/source/fe/fe_poly_tensor.cc

index 276ee00f8e161c127073bd236481f4b091301fc5..724e3779fe395a8bc6bc4234e9b2f22e56ff5ea8 100644 (file)
@@ -39,6 +39,9 @@ FE_BDM<dim>::FE_BDM (const unsigned int deg)
                                                  std::vector<bool>(dim,true)))
 {
   Assert (dim >= 2, ExcImpossibleInDim(dim));
+  Assert (dim<3, ExcNotImplemented());
+  Assert (deg > 0, ExcMessage("Lowest order BDM element are degree 1, but you asked for degree 0"));
+  
   const unsigned int n_dofs = this->dofs_per_cell;
   
   this->mapping_type = mapping_piola;
index 285800d6f294840244630decba5536775e7e9d58..7a313ba53d2cc2b49e2b08f6302cba78d1145ae1 100644 (file)
@@ -435,7 +435,8 @@ FE_PolyTensor<POLY,dim,spacedim>::fill_fe_values (
              break;
            }
          
-         case mapping_nedelec: {
+         case mapping_nedelec:
+         {
             std::vector<Tensor<1,dim> > shape_values (n_q_points);
             mapping.transform (fe_data.shape_values[i], shape_values,
               mapping_data, mapping_covariant);

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.