diff --git a/src/fileFormats/ensight/part/ensightCells.C b/src/fileFormats/ensight/part/ensightCells.C index 141df44053..d08996ad85 100644 --- a/src/fileFormats/ensight/part/ensightCells.C +++ b/src/fileFormats/ensight/part/ensightCells.C @@ -49,41 +49,25 @@ const Foam::NamedEnum // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -inline Foam::label Foam::ensightCells::offset -( - const enum elemType what, - const label i -) const -{ - label n = i; - for (label typeI = 0; typeI < label(what); ++typeI) - { - n += sizes_[typeI]; - } - - return n; -} - - -void Foam::ensightCells::resize() +void Foam::ensightCells::resizeAll() { // overall required size label n = 0; - forAll(sizes_, typeI) + forAll(sizes_, typei) { - n += sizes_[typeI]; + n += sizes_[typei]; } address_.setSize(n, Zero); // assign corresponding sub-lists n = 0; - forAll(sizes_, typeI) + forAll(sizes_, typei) { - deleteDemandDrivenData(lists_[typeI]); + deleteDemandDrivenData(lists_[typei]); - lists_[typeI] = new SubList