diff --git a/.clang-tidy b/.clang-tidy index b32e79a9ab8589049de0ef664b0d469ca791ad03..9ac2c70c51790bc0b7f901f22283eac8381aaca4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -38,7 +38,8 @@ readability-delete-null-pointer, readability-deleted-default, readability-misleading-indentation, readability-misplaced-array-index, -readability-redundant-control-flow +readability-redundant-control-flow, +readability-redundant-smartptr-get ' WarningsAsErrors: '*' diff --git a/apps/benchmarks/PoiseuilleChannel/PoiseuilleChannel.cpp b/apps/benchmarks/PoiseuilleChannel/PoiseuilleChannel.cpp index ae5352c0ac4ba8615f22d8904ffcf9c727633d9b..b72efbdcbfb90a2502523e3fff73122f36f2f65c 100644 --- a/apps/benchmarks/PoiseuilleChannel/PoiseuilleChannel.cpp +++ b/apps/benchmarks/PoiseuilleChannel/PoiseuilleChannel.cpp @@ -553,12 +553,12 @@ void setFlags( shared_ptr< StructuredBlockForest > & blocks, const BlockDataID & { CurvedDeltaValueCalculation< LatticeModel_T > deltaCalculation( blocks, *block, channel ); - lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block.get()), + lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block), boundaryHandlingId, Curved_Flag, channel, deltaCalculation ); } else // staircase (1st order bounce back no-slip boundary condition) { - lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block.get()), + lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block), boundaryHandlingId, NoSlip_Flag, channel ); } diff --git a/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp b/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp index 876a60942ba24d83ecd17222a8636824ffdc9248..50c3a9244da51ae3fa5dfec97d5b928ca8f56ced 100644 --- a/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp +++ b/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp @@ -961,12 +961,12 @@ void BoundarySetter< LatticeModel_T >::operator()() { CurvedDeltaValueCalculation< LatticeModel_T > deltaCalculation( blocks, *block, cylinder ); - lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block.get()), + lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block), boundaryHandlingId_, Curved_Flag, cylinder, deltaCalculation ); } else // staircase { - lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block.get()), + lbm::refinement::consistentlyForceBoundary< BoundaryHandling_T >( *blocks, dynamic_cast< blockforest::Block & >(*block), boundaryHandlingId_, Obstacle_Flag, cylinder ); }