Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
56bf3f6c
Commit
56bf3f6c
authored
Jan 11, 2012
by
andy
Browse files
ENH: Use const ref instead of copy for vector
parent
154eea44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.C
View file @
56bf3f6c
...
...
@@ -75,8 +75,8 @@ Foam::tmp<Foam::vectorField> Foam::cyclicAMIFvPatch::delta() const
{
forAll
(
patchD
,
faceI
)
{
vector
ddi
=
patchD
[
faceI
];
vector
dni
=
nbrPatchD
[
faceI
];
const
vector
&
ddi
=
patchD
[
faceI
];
const
vector
&
dni
=
nbrPatchD
[
faceI
];
pdv
[
faceI
]
=
ddi
-
dni
;
}
...
...
@@ -85,8 +85,8 @@ Foam::tmp<Foam::vectorField> Foam::cyclicAMIFvPatch::delta() const
{
forAll
(
patchD
,
faceI
)
{
vector
ddi
=
patchD
[
faceI
];
vector
dni
=
nbrPatchD
[
faceI
];
const
vector
&
ddi
=
patchD
[
faceI
];
const
vector
&
dni
=
nbrPatchD
[
faceI
];
pdv
[
faceI
]
=
ddi
-
transform
(
forwardT
()[
0
],
dni
);
}
...
...
Write
Preview
Supports
Markdown
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