]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify use of a function in ReferenceCell. 12103/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Apr 2021 20:49:06 +0000 (14:49 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 28 Apr 2021 03:13:42 +0000 (21:13 -0600)
include/deal.II/grid/reference_cell.h

index acf6cf1b709c0ae6d0b82b2a6be193fe56959239..c132130ee0b6aaeca7d4fcb7425d4c84168b1234 100644 (file)
@@ -169,7 +169,7 @@ public:
    * cell is a pyramid), or with FE_WedgeP (if the reference cell is
    * a wedge).
    */
-  template <int dim, int spacedim>
+  template <int dim, int spacedim = dim>
   std::unique_ptr<Mapping<dim, spacedim>>
   get_default_mapping(const unsigned int degree) const;
 
@@ -184,7 +184,7 @@ public:
    * understood as $d$-linear (i.e., bilinear or trilinear) for some of the
    * coordinate directions.
    */
-  template <int dim, int spacedim>
+  template <int dim, int spacedim = dim>
   const Mapping<dim, spacedim> &
   get_default_linear_mapping() const;
 

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.