Commit 17d33943 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix Small problem

parent 6670d9d7
Pipeline #38680 failed with stages
in 8 minutes and 18 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)
virtual void resize(uint_t xSize, uint_t ySize, uint_t zSize, uint_t fSize)
{
Field<T>::resize(xSize, ySize, zSize, fSize_);
}
......
......@@ -298,16 +298,16 @@ class GhostLayerField<T, fSize_> : public Field<T, fSize_> {
}
void resize( uint_t _xSize, uint_t _ySize, uint_t _zSize ) 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;
Field<T,fSize_>::resize( _xSize+2*gl_, _ySize+2*gl_, _zSize+2*gl_);
Field<T,fSize_>::setOffsets( gl_, _xSize, gl_, _ySize, gl_, _zSize );
Field<T, fSize_>::resize( _xSize+2*gl_, _ySize+2*gl_, _zSize+2*gl_, fSize_);
Field<T, fSize_>::setOffsets( gl_, _xSize, gl_, _ySize, gl_, _zSize );
}
Field<T,fSize_> * cloneShallowCopyInternal() const override
Field<T, fSize_> * cloneShallowCopyInternal() const override
{
return new GhostLayerField<T,fSize_>(*this);
}
......
......@@ -108,11 +108,6 @@ public:
VTKWriter( const ConstBlockDataID bdid, const std::string& id ) :
base_t( id ), bdid_( bdid ), field_( nullptr )
{
WALBERLA_ASSERT_NOT_NULLPTR( this->block_ )
field_ = this->block_->template getData< Field_T >( bdid_ );
WALBERLA_ASSERT_NOT_NULLPTR( field_ )
fSize_ = field_->fSize();
}
protected:
......
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