label offset = Num_variables - nSecondMeshVariables - nFaMeshVariables; if (nVar < offset || nVar >= (Num_variables-nFaMeshVariables)) { return Z_UNDEF; } IOobject fieldObjectPtr ( secondMeshFieldNames[secondMeshVar2field[nVar-offset]], runTime.timeName(), *secondMeshPtr, IOobject::NO_READ ); if (!fieldObjectPtr.headerOk()) { return Z_UNDEF; } IOobject fieldObject ( secondMeshFieldNames[secondMeshVar2field[nVar-offset]], runTime.timeName(), *secondMeshPtr, IOobject::MUST_READ, IOobject::NO_WRITE ); volTensorField tf ( fieldObject, *secondMeshPtr ); const cellShapeList& cellShapes = secondMeshPtr->cellShapes(); // hexa's if (which_type == Z_HEX08) { const cellModel& hex = *(cellModeller::lookup("hex")); //const cellModel& wedge = *(cellModeller::lookup("wedge")); label counter = 1; for (label n=0; ncells(); label counter = 1; for (label n=0; n