Skip to content
Snippets Groups Projects
Commit 274a589f authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Use trailing return type where reasonable

parent 628fa9b5
No related branches found
No related tags found
1 merge request!156Cleanup UGGrid code
......@@ -242,8 +242,9 @@ UGGridEntity < 0, dim ,GridImp >::hend(int maxlevel) const
}
template<int dim, class GridImp>
typename UGGridEntity<0,dim,GridImp>::LocalGeometry
auto
UGGridEntity < 0, dim, GridImp>::geometryInFather () const
-> LocalGeometry
{
// we need to have a father element
typename UG_NS<dim>::Element* fatherElement = UG_NS<dim>::EFather(target_);
......
......@@ -11,9 +11,10 @@
namespace Dune {
template<class GridImp>
const typename UGGridLevelIntersection<GridImp>::WorldVector&
auto
UGGridLevelIntersection<GridImp>::outerNormal
(const FaceVector& local) const
-> const WorldVector&
{
// //////////////////////////////////////////////////////
// Implementation for 3D
......@@ -92,8 +93,9 @@ UGGridLevelIntersection<GridImp>::outerNormal
}
template< class GridImp>
typename UGGridLevelIntersection<GridImp>::LocalGeometry
auto
UGGridLevelIntersection<GridImp>::geometryInInside () const
-> LocalGeometry
{
if (!geometryInInside_) {
......@@ -120,8 +122,9 @@ UGGridLevelIntersection<GridImp>::geometryInInside () const
}
template< class GridImp>
typename UGGridLevelIntersection<GridImp>::Geometry
auto
UGGridLevelIntersection<GridImp>::geometry () const
-> Geometry
{
if (!geometry_) {
......@@ -148,8 +151,9 @@ UGGridLevelIntersection<GridImp>::geometry () const
}
template<class GridImp>
typename UGGridLevelIntersection<GridImp>::LocalGeometry
auto
UGGridLevelIntersection<GridImp>::geometryInOutside () const
-> LocalGeometry
{
if (!geometryInOutside_) {
......@@ -224,9 +228,10 @@ int UGGridLevelIntersection<GridImp>::indexInOutside () const
If the face is flat this doesn't matter.
*/
template<class GridImp>
const typename UGGridLeafIntersection<GridImp>::WorldVector&
auto
UGGridLeafIntersection<GridImp>::outerNormal
(const FaceVector& local) const
-> const WorldVector&
{
/////////////////////////////////////////////////////////
// Implementation for 3D
......@@ -305,8 +310,9 @@ UGGridLeafIntersection<GridImp>::outerNormal
}
template< class GridImp>
typename UGGridLeafIntersection<GridImp>::LocalGeometry
auto
UGGridLeafIntersection< GridImp >::geometryInInside () const
-> LocalGeometry
{
if (!geometryInInside_) {
......@@ -373,8 +379,9 @@ UGGridLeafIntersection< GridImp >::geometryInInside () const
}
template< class GridImp>
typename UGGridLeafIntersection<GridImp>::Geometry
auto
UGGridLeafIntersection< GridImp >::geometry () const
-> Geometry
{
if (!geometry_) {
......@@ -438,8 +445,9 @@ UGGridLeafIntersection< GridImp >::geometry () const
/** \todo Needs to be checked for the nonconforming case */
template< class GridImp>
typename UGGridLeafIntersection<GridImp>::LocalGeometry
auto
UGGridLeafIntersection< GridImp >::geometryInOutside () const
-> LocalGeometry
{
if (!geometryInOutside_) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment