// for documentation, see the Mapping base class
virtual
- Mapping<dim,spacedim> *clone () const;
+ MappingQ1<dim,spacedim> *clone () const;
/**
* @name Mapping points between reference and real cells
* then assumes ownership of it.
*/
virtual
- Mapping<dim,spacedim> *clone () const;
+ MappingQ1Eulerian<dim,VECTOR,spacedim> *clone () const;
/**
* Always returns @p false because MappingQ1Eulerian does not in general
use_mapping_q_on_all_cells (mapping.use_mapping_q_on_all_cells),
// clone the Q1 mapping for use on interior cells (if necessary)
// or to create a good initial guess in transform_real_to_unit_cell()
- q1_mapping (dynamic_cast<MappingQ1<dim,spacedim>*>(mapping.q1_mapping->clone()))
+ q1_mapping (mapping.q1_mapping->clone())
{}
-template<int dim, int spacedim>
-MappingQ1<dim,spacedim>::MappingQ1 (const unsigned int p)
- :
- MappingQGeneric<dim,spacedim> (p)
-{}
-
-
-
namespace internal
{
namespace MappingQ1
template<int dim, int spacedim>
-Mapping<dim,spacedim> *
+MappingQ1<dim,spacedim> *
MappingQ1<dim,spacedim>::clone () const
{
return new MappingQ1<dim,spacedim>(*this);
template <int dim, class EulerVectorType, int spacedim>
-Mapping<dim,spacedim> *
+MappingQ1Eulerian<dim,EulerVectorType,spacedim> *
MappingQ1Eulerian<dim, EulerVectorType, spacedim>::clone () const
{
return new MappingQ1Eulerian<dim,EulerVectorType,spacedim>(*this);