Commit aa1e27f7 authored by Daniel Bauer's avatar Daniel Bauer
Browse files

add missing include

parent 2d1946f3
Pipeline #38944 passed with stages
in 149 minutes and 1 second
...@@ -64,8 +64,8 @@ public: ...@@ -64,8 +64,8 @@ public:
shared_ptr<mesh::DistanceOctree<Mesh_T>> distanceOctree, shared_ptr<mesh::DistanceOctree<Mesh_T>> distanceOctree,
const uint_t numGhostLayers ); const uint_t numGhostLayers );
void init( mesh::ColorToBoundaryMapper<Mesh_T> & colorToBoundaryMapper, void init( const mesh::ColorToBoundaryMapper<Mesh_T> & colorToBoundaryMapper,
FlagUID fluidFlagID ); const FlagUID fluidFlagID );
void init( BlockStorage & blockStorage, const Config::BlockHandle & blockHandle ) override; void init( BlockStorage & blockStorage, const Config::BlockHandle & blockHandle ) override;
......
...@@ -32,7 +32,6 @@ namespace initializer { ...@@ -32,7 +32,6 @@ namespace initializer {
namespace internal { namespace internal {
// TODO: move this to central place
//********************************************************************************************************************** //**********************************************************************************************************************
/*! A small helper class that makes it possible to use mesh::boundary::BoundarySetup /*! 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. * to operate directly on the flag field instead of on a boundary handling.
...@@ -141,18 +140,18 @@ BoundaryFromMesh<FlagField_T, Mesh_T>::BoundaryFromMesh( ...@@ -141,18 +140,18 @@ BoundaryFromMesh<FlagField_T, Mesh_T>::BoundaryFromMesh(
//******************************************************************************************************************* //*******************************************************************************************************************
template<typename FlagField_T, typename Mesh_T> template<typename FlagField_T, typename Mesh_T>
void BoundaryFromMesh<FlagField_T, Mesh_T>::init( void BoundaryFromMesh<FlagField_T, Mesh_T>::init(
mesh::ColorToBoundaryMapper<Mesh_T> & colorToBoundaryMapper, const mesh::ColorToBoundaryMapper<Mesh_T> & colorToBoundaryMapper,
FlagUID fluidFlagID ) const FlagUID fluidFlagID )
{ {
using namespace internal; 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>>( boundarySetup_.setBoundaries<FlagFieldBoundaryHandling<FlagField_T>>(
flagFieldBoundarHandlingID_, flagFieldBoundarHandlingID_,
makeBoundaryLocationFunction(distanceOctree_, boundaryLocation_), makeBoundaryLocationFunction( distanceOctree_, boundaryLocation_ ),
mesh::BoundarySetup::INSIDE ); mesh::BoundarySetup::INSIDE );
} }
...@@ -160,8 +159,8 @@ template<typename FlagField_T, typename Mesh_T> ...@@ -160,8 +159,8 @@ template<typename FlagField_T, typename Mesh_T>
void BoundaryFromMesh<FlagField_T, Mesh_T>::init( void BoundaryFromMesh<FlagField_T, Mesh_T>::init(
BlockStorage &, const Config::BlockHandle & blockHandle ) BlockStorage &, const Config::BlockHandle & blockHandle )
{ {
mesh::ColorToBoundaryMapper< Mesh_T > colorToBoundaryMapper{ blockHandle.getBlock( "ColorToBoundaryMapper") }; mesh::ColorToBoundaryMapper< Mesh_T > colorToBoundaryMapper{ blockHandle.getBlock( "ColorToBoundaryMapper" ) };
FlagUID fluidFlag = FlagUID{ blockHandle.getParameter< std::string >( "fluidFlag") }; FlagUID fluidFlag = FlagUID{ blockHandle.getParameter< std::string >( "fluidFlag" ) };
init( colorToBoundaryMapper, fluidFlag ); init( colorToBoundaryMapper, fluidFlag );
} }
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "core/config/Config.h" #include "core/config/Config.h"
#include "core/DataTypes.h" #include "core/DataTypes.h"
#include "core/debug/CheckFunctions.h" #include "core/debug/CheckFunctions.h"
#include "core/math/Vector3.h"
#include <map> #include <map>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment