Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
84f55a6a
Commit
84f55a6a
authored
Apr 28, 2022
by
Dominik Thoennes
Browse files
some clang tidy fixes
parent
b0d135c5
Pipeline
#39439
passed with stages
in 108 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/hyteg/dgfunctionspace/DGFunction.cpp
View file @
84f55a6a
...
...
@@ -20,6 +20,8 @@
#include
"hyteg/dgfunctionspace/DGFunction.hpp"
#include
<utility>
#include
"core/DataTypes.h"
#include
"core/mpi/MPIWrapper.h"
#include
"core/mpi/Reduce.h"
...
...
@@ -47,13 +49,13 @@ DGFunction< ValueType >::DGFunction( const std::string&
,
minLevel_
(
minLevel
)
,
maxLevel_
(
maxLevel
)
,
basis_
(
basis
)
,
boundaryCondition_
(
boundaryCondition
)
,
boundaryCondition_
(
std
::
move
(
boundaryCondition
)
)
{
uint_t
dim
;
if
(
storage
->
hasGlobalCells
()
)
{
dim
=
3
;
for
(
auto
pid
:
storage
->
getCellIDs
()
)
for
(
const
auto
&
pid
:
storage
->
getCellIDs
()
)
{
polyDegreesPerPrimitive_
[
pid
]
=
initialPolyDegree
;
}
...
...
@@ -61,7 +63,7 @@ DGFunction< ValueType >::DGFunction( const std::string&
else
{
dim
=
2
;
for
(
auto
pid
:
storage
->
getFaceIDs
()
)
for
(
const
auto
&
pid
:
storage
->
getFaceIDs
()
)
{
polyDegreesPerPrimitive_
[
pid
]
=
initialPolyDegree
;
}
...
...
@@ -189,11 +191,11 @@ void DGFunction< ValueType >::evaluateOnMicroElement( const Point3D& coo
{
// 2D
WALBERLA_ASSERT
(
!
storage_
->
hasGlobalCells
()
)
;
WALBERLA_ASSERT
(
!
storage_
->
hasGlobalCells
()
)
Point2D
coordinates2D
(
{
coordinates
[
0
],
coordinates
[
1
]
}
);
WALBERLA_ASSERT
(
storage_
->
faceExistsLocally
(
faceID
)
)
;
WALBERLA_ASSERT
(
storage_
->
faceExistsLocally
(
faceID
)
)
const
Face
&
face
=
*
storage_
->
getFace
(
faceID
);
const
auto
polyDegree
=
polyDegreesPerPrimitive_
.
at
(
faceID
);
...
...
@@ -244,9 +246,9 @@ void DGFunction< ValueType >::evaluateOnMicroElement( const Point3D& coo
{
// 2D
WALBERLA_ASSERT
(
storage_
->
hasGlobalCells
()
)
;
WALBERLA_ASSERT
(
storage_
->
hasGlobalCells
()
)
WALBERLA_ASSERT
(
storage_
->
cellExistsLocally
(
cellID
)
)
;
WALBERLA_ASSERT
(
storage_
->
cellExistsLocally
(
cellID
)
)
const
Cell
&
cell
=
*
storage_
->
getCell
(
cellID
);
const
auto
polyDegree
=
polyDegreesPerPrimitive_
.
at
(
cellID
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment