Skip to content
Snippets Groups Projects
Commit 681140f4 authored by Simon Praetorius's avatar Simon Praetorius Committed by Timo Koch
Browse files

Apply 4 suggestion(s) to 1 file(s)

parent 14389b42
No related tags found
1 merge request!83Feature/explicit template instantiation foam
Pipeline #35291 passed
......@@ -503,7 +503,7 @@ template <int dimgrid, int dimworld, class ctype>
void FoamGrid<dimgrid, dimworld, ctype>::refineSimplexElement(FoamGridEntityImp<2, 2, dimworld, ctype>& element,
int refCount)
{
if constexpr(dimgrid == 2)
if constexpr(dimgrid==2)
{
if(refCount<=0)
{
......@@ -801,7 +801,7 @@ template <int dimgrid, int dimworld, class ctype>
void FoamGrid<dimgrid, dimworld, ctype>::refineSimplexElement(FoamGridEntityImp<1, 1, dimworld, ctype>& element,
int refCount)
{
if constexpr (dimgrid == 1)
if constexpr(dimgrid==1)
{
if(refCount<=0)
{
......@@ -1314,9 +1314,9 @@ void FoamGrid<dimgrid, dimworld, ctype>::addNewFacet(FoamGridEntityImp<dimgrid-1
std::array<FoamGridEntityImp<0, dimgrid, dimworld, ctype>*,dimgrid> vertexArray,
int level)
{
if constexpr (dimgrid == 1)
if constexpr(dimgrid==1)
facet = vertexArray[0];
else if constexpr (dimgrid == 2) {
else if constexpr(dimgrid==2) {
std::get<1>(entityImps_[level]).push_back(FoamGridEntityImp<1, 2, dimworld, ctype>(vertexArray[0], vertexArray[1], level, getNextFreeId()));
facet = &*std::get<1>(entityImps_[level]).rbegin();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment