Commit 1b885ca4 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix Small problem

parent 17d33943
Pipeline #38681 failed with stages
in 5 minutes and 12 seconds
......@@ -423,7 +423,7 @@ class Field<T, fSize_> : public Field<T> {
Field<T>::init(xSize, ySize, zSize, fSize_, std::forward<Args>(args)...);
}
virtual void resize(uint_t xSize, uint_t ySize, uint_t zSize, uint_t fSize)
virtual void resize(uint_t xSize, uint_t ySize, uint_t zSize, uint_t /*fSize*/)
{
Field<T>::resize(xSize, ySize, zSize, fSize_);
}
......
......@@ -298,7 +298,7 @@ class GhostLayerField<T, fSize_> : public Field<T, fSize_> {
}
void resize( uint_t _xSize, uint_t _ySize, uint_t _zSize, uint_t fSize ) override
void resize( uint_t _xSize, uint_t _ySize, uint_t _zSize, uint_t /*fSize*/ ) override
{
if ( _xSize == this->xSize() && _ySize == this->ySize() && _zSize == this->zSize() )
return;
......
......@@ -54,11 +54,11 @@ namespace initializer {
if ( initialFill == addKeyword_ )
{
for( auto blockIt = structuredBlockStorage_.begin(); blockIt != structuredBlockStorage_.end(); ++blockIt )
blockIt->getData<GhostLayerField<real_t> > ( scalarFieldID_ )->setWithGhostLayer( real_t(1.0) );
blockIt->getData<GhostLayerField<real_t, 1> > ( scalarFieldID_ )->setWithGhostLayer( real_t(1.0) );
}
else if ( initialFill == subtractKeyword_ ) {
for( auto blockIt = structuredBlockStorage_.begin(); blockIt != structuredBlockStorage_.end(); ++blockIt )
blockIt->getData<GhostLayerField<real_t> > ( scalarFieldID_ )->setWithGhostLayer( real_t(0.0) );
blockIt->getData<GhostLayerField<real_t, 1> > ( scalarFieldID_ )->setWithGhostLayer( real_t(0.0) );
}
else {
WALBERLA_ABORT("Unknown value of initialFill. Valid values are " << addKeyword_ << "," << subtractKeyword_ )
......
......@@ -144,7 +144,7 @@ namespace initializer {
{
IBlock * block = &(*blockIt);
GhostLayerField<real_t> * ff = block->getData<GhostLayerField<real_t> >( scalarFieldID_ );
GhostLayerField<real_t, 1> * ff = block->getData<GhostLayerField<real_t, 1> >( scalarFieldID_ );
auto gl = cell_idx_c( ff->nrOfGhostLayers() );
// If Block (extended with ghost layers) does not intersect body - skip the complete block
......
......@@ -132,7 +132,7 @@ namespace initializer {
for( auto blockIt = structuredBlockStorage_.begin(); blockIt != structuredBlockStorage_.end(); ++blockIt )
{
GhostLayerField<real_t> * f = blockIt->getData<GhostLayerField<real_t> >( scalarFieldID_ );
GhostLayerField<real_t, 1> * f = blockIt->getData<GhostLayerField<real_t, 1> >( scalarFieldID_ );
const cell_idx_t width = cell_idx_c( img.width() ) ;
const cell_idx_t height = cell_idx_c( img.height()) ;
......
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