foamToTecplot360: Updated to use tmp.ref()

Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2288
This commit is contained in:
Henry Weller
2016-10-09 15:13:50 +01:00
parent 50b549f368
commit 3ea71fb56a
3 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ Foam::tmp<Field<Type>> Foam::tecplotWriter::getFaceField
const polyBoundaryMesh& patches = sfld.mesh().boundaryMesh();
tmp<Field<Type>> tfld(new Field<Type>(faceLabels.size()));
Field<Type>& fld = tfld();
Field<Type>& fld = tfld.ref();
forAll(faceLabels, i)
{