// good. so create finite
// element and return position
// count
- return std::make_pair (new FE_Q_Hierarchical<dim>(tmp.first),
+ return std::make_pair (static_cast<FiniteElement<dim>*>
+ (new FE_Q_Hierarchical<dim>(tmp.first)),
position);
}
// check other possibilities in
position += tmp.second;
AssertThrow (name[position] == ')', ExcInvalidFEName(name));
++position;
- return std::make_pair (new FE_RaviartThomas<dim>(tmp.first),
+ return std::make_pair (static_cast<FiniteElement<dim>*>
+ (new FE_RaviartThomas<dim>(tmp.first)),
position);
}
else if (match_at_string_start (name, std::string("FE_Nedelec")))
position += tmp.second;
AssertThrow (name[position] == ')', ExcInvalidFEName(name));
++position;
- return std::make_pair (new FE_Nedelec<dim>(tmp.first),
+ return std::make_pair (static_cast<FiniteElement<dim>*>
+ (new FE_Nedelec<dim>(tmp.first)),
position);
}
else if (match_at_string_start (name, std::string("FE_DGPNonparametric")))
position += tmp.second;
AssertThrow (name[position] == ')', ExcInvalidFEName(name));
++position;
- return std::make_pair (new FE_DGPNonparametric<dim>(tmp.first),
+ return std::make_pair (static_cast<FiniteElement<dim>*>
+ (new FE_DGPNonparametric<dim>(tmp.first)),
position);
}
else if (match_at_string_start (name, std::string("FE_DGP")))
position += tmp.second;
AssertThrow (name[position] == ')', ExcInvalidFEName(name));
++position;
- return std::make_pair (new FE_DGP<dim>(tmp.first),
+ return std::make_pair (static_cast<FiniteElement<dim>*>(new FE_DGP<dim>(tmp.first)),
position);
}
else if (match_at_string_start (name, std::string("FE_DGQ")))
position += tmp.second;
AssertThrow (name[position] == ')', ExcInvalidFEName(name));
++position;
- return std::make_pair (new FE_DGQ<dim>(tmp.first),
+ return std::make_pair (static_cast<FiniteElement<dim>*> (new FE_DGQ<dim>(tmp.first)),
position);
}
else if (match_at_string_start (name, std::string("FE_Q")))
position += tmp.second;
AssertThrow (name[position] == ')', ExcInvalidFEName(name));
++position;
- return std::make_pair (new FE_Q<dim>(tmp.first),
+ return std::make_pair (static_cast<FiniteElement<dim>*>(new FE_Q<dim>(tmp.first)),
position);
}