]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a variable that only appears in an assert.
authorDavid Wells <drwells@vt.edu>
Tue, 14 Apr 2015 13:01:25 +0000 (09:01 -0400)
committerDavid Wells <drwells@vt.edu>
Tue, 14 Apr 2015 13:01:25 +0000 (09:01 -0400)
This is slightly simpler than declaring the variable and then using
the (void) cast.

source/fe/mapping_fe.cc

index 3a67e89721281f931450c650269a58f916d923b6..77101247f03dc43721e6e302de390cf3ce7227e1 100644 (file)
@@ -479,11 +479,10 @@ MappingFE<dim,spacedim,DH,VECTOR>::fill_fe_values (
                   }
                 else
                   {
-                    const unsigned int codim = spacedim-dim;
-
                     if (update_flags & update_normal_vectors)
                       {
-                        Assert( codim==1 , ExcMessage("There is no cell normal in codim 2."));
+                        Assert (spacedim - dim == 1,
+                                ExcMessage("There is no cell normal in codim 2."));
 
                         if (dim==1)
                           cross_product(normal_vectors[point], -DX_t[0]);

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.