Commit d474c97c authored by Henry Weller's avatar Henry Weller
Browse files

transformGeometricField: Use '.ref()' to obtain non-const access to a temporary

parent 7fb27394
......@@ -84,7 +84,7 @@ tmp<GeometricField<Type, PatchField, GeoMesh>> transform
)
);
transform(tranf(), trf, tf);
transform(tranf.ref(), trf, tf);
return tranf;
}
......@@ -155,7 +155,7 @@ tmp<GeometricField<Type, PatchField, GeoMesh>> transform
{
tmp<GeometricField<Type, PatchField, GeoMesh>> tranf
(
new GeometricField<vector, PatchField, GeoMesh>
new GeometricField<Type, PatchField, GeoMesh>
(
IOobject
(
......@@ -170,7 +170,7 @@ tmp<GeometricField<Type, PatchField, GeoMesh>> transform
)
);
transform(tranf(), t, tf);
transform(tranf.ref(), t, tf);
return tranf;
}
......
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