Skip to content

Commit 52bb4b8

Browse files
author
rube051
committed
Fixed formating in polyhedralgrid/grid.hh
1 parent 129dcb0 commit 52bb4b8

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

opm/grid/polyhedralgrid/grid.hh

+19-12
Original file line numberDiff line numberDiff line change
@@ -1603,18 +1603,25 @@ namespace Dune
16031603
geomTypes_.resize(dim + 1);
16041604
for (int codim = 0; codim <= dim; ++codim)
16051605
{
1606-
if( hasSimplex ){
1607-
tmp = Dune::GeometryTypes::simplex(dim - codim);
1608-
geomTypes_[ codim ].push_back( tmp );
1609-
}
1610-
else if ( hasCube ){
1611-
tmp = Dune::GeometryTypes::cube(dim - codim);
1612-
geomTypes_[ codim ].push_back( tmp );}
1613-
else if (hasPolyhedron){
1614-
tmp = Dune::GeometryTypes::none(dim - codim);
1615-
geomTypes_[ codim ].push_back( tmp );}
1616-
else
1617-
OPM_THROW(std::runtime_error, "Grid error, unkown geometry type.");
1606+
if( hasSimplex )
1607+
{
1608+
tmp = Dune::GeometryTypes::simplex(dim - codim);
1609+
geomTypes_[ codim ].push_back( tmp );
1610+
}
1611+
else if ( hasCube )
1612+
{
1613+
tmp = Dune::GeometryTypes::cube(dim - codim);
1614+
geomTypes_[ codim ].push_back( tmp );
1615+
}
1616+
else if (hasPolyhedron)
1617+
{
1618+
tmp = Dune::GeometryTypes::none(dim - codim);
1619+
geomTypes_[ codim ].push_back( tmp );
1620+
}
1621+
else
1622+
{
1623+
OPM_THROW(std::runtime_error, "Grid error, unkown geometry type.");
1624+
}
16181625
}
16191626

16201627
} // end else of ( grid_.cell_facetag )

0 commit comments

Comments
 (0)