Commit 84f55a6a authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

some clang tidy fixes

parent b0d135c5
Pipeline #39439 passed with stages
in 108 minutes and 21 seconds
......@@ -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 );
......
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