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
Daniel Bauer
waLBerla
Commits
aa1e27f7
Commit
aa1e27f7
authored
Apr 04, 2022
by
Daniel Bauer
Browse files
add missing include
parent
2d1946f3
Pipeline
#38944
passed with stages
in 149 minutes and 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/geometry/initializer/BoundaryFromMesh.h
View file @
aa1e27f7
...
...
@@ -64,8 +64,8 @@ public:
shared_ptr
<
mesh
::
DistanceOctree
<
Mesh_T
>>
distanceOctree
,
const
uint_t
numGhostLayers
);
void
init
(
mesh
::
ColorToBoundaryMapper
<
Mesh_T
>
&
colorToBoundaryMapper
,
FlagUID
fluidFlagID
);
void
init
(
const
mesh
::
ColorToBoundaryMapper
<
Mesh_T
>
&
colorToBoundaryMapper
,
const
FlagUID
fluidFlagID
);
void
init
(
BlockStorage
&
blockStorage
,
const
Config
::
BlockHandle
&
blockHandle
)
override
;
...
...
src/geometry/initializer/BoundaryFromMesh.impl.h
View file @
aa1e27f7
...
...
@@ -32,7 +32,6 @@ namespace initializer {
namespace
internal
{
// TODO: move this to central place
//**********************************************************************************************************************
/*! A small helper class that makes it possible to use mesh::boundary::BoundarySetup
* to operate directly on the flag field instead of on a boundary handling.
...
...
@@ -141,18 +140,18 @@ BoundaryFromMesh<FlagField_T, Mesh_T>::BoundaryFromMesh(
//*******************************************************************************************************************
template
<
typename
FlagField_T
,
typename
Mesh_T
>
void
BoundaryFromMesh
<
FlagField_T
,
Mesh_T
>::
init
(
mesh
::
ColorToBoundaryMapper
<
Mesh_T
>
&
colorToBoundaryMapper
,
FlagUID
fluidFlagID
)
const
mesh
::
ColorToBoundaryMapper
<
Mesh_T
>
&
colorToBoundaryMapper
,
const
FlagUID
fluidFlagID
)
{
using
namespace
internal
;
boundarySetup_
.
setFlag
<
FlagField_T
>
(
flagFieldID_
,
fluidFlagID
,
mesh
::
BoundarySetup
::
OUTSIDE
);
boundarySetup_
.
setFlag
<
FlagField_T
>
(
flagFieldID_
,
fluidFlagID
,
mesh
::
BoundarySetup
::
OUTSIDE
);
boundaryLocation_
=
colorToBoundaryMapper
.
addBoundaryInfoToMesh
(
*
mesh_
);
boundaryLocation_
=
colorToBoundaryMapper
.
addBoundaryInfoToMesh
(
*
mesh_
);
boundarySetup_
.
setBoundaries
<
FlagFieldBoundaryHandling
<
FlagField_T
>>
(
flagFieldBoundarHandlingID_
,
makeBoundaryLocationFunction
(
distanceOctree_
,
boundaryLocation_
),
makeBoundaryLocationFunction
(
distanceOctree_
,
boundaryLocation_
),
mesh
::
BoundarySetup
::
INSIDE
);
}
...
...
@@ -160,8 +159,8 @@ template<typename FlagField_T, typename Mesh_T>
void
BoundaryFromMesh
<
FlagField_T
,
Mesh_T
>::
init
(
BlockStorage
&
,
const
Config
::
BlockHandle
&
blockHandle
)
{
mesh
::
ColorToBoundaryMapper
<
Mesh_T
>
colorToBoundaryMapper
{
blockHandle
.
getBlock
(
"ColorToBoundaryMapper"
)
};
FlagUID
fluidFlag
=
FlagUID
{
blockHandle
.
getParameter
<
std
::
string
>
(
"fluidFlag"
)
};
mesh
::
ColorToBoundaryMapper
<
Mesh_T
>
colorToBoundaryMapper
{
blockHandle
.
getBlock
(
"ColorToBoundaryMapper"
)
};
FlagUID
fluidFlag
=
FlagUID
{
blockHandle
.
getParameter
<
std
::
string
>
(
"fluidFlag"
)
};
init
(
colorToBoundaryMapper
,
fluidFlag
);
}
...
...
src/mesh/boundary/ColorToBoundaryMapper.h
View file @
aa1e27f7
...
...
@@ -26,6 +26,7 @@
#include
"core/config/Config.h"
#include
"core/DataTypes.h"
#include
"core/debug/CheckFunctions.h"
#include
"core/math/Vector3.h"
#include
<map>
...
...
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