Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
d474c97c
Commit
d474c97c
authored
May 22, 2016
by
Henry Weller
Browse files
transformGeometricField: Use '.ref()' to obtain non-const access to a temporary
parent
7fb27394
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/fields/GeometricFields/transformGeometricField/transformGeometricField.C
View file @
d474c97c
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment