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
ea4c4f1b
Commit
ea4c4f1b
authored
Jun 05, 2018
by
sergio
Browse files
BUG: Correct EP ID 693. Avoid sum flux over proc patches twice
parent
67d4736a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/overset/oversetAdjustPhi/oversetAdjustPhi.C
View file @
ea4c4f1b
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2017
-2018
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -121,19 +121,11 @@ bool Foam::oversetAdjustPhi
(
ownType
==
cellCellStencil
::
CALCULATED
)
&&
(
neiType
==
cellCellStencil
::
INTERPOLATED
);
bool
neiCalc
=
(
ownType
==
cellCellStencil
::
INTERPOLATED
)
&&
(
neiType
==
cellCellStencil
::
CALCULATED
);
if
(
ownCalc
||
neiCalc
)
if
(
ownCalc
)
{
// Calculate flux w.r.t. calculated cell
scalar
flux
=
phip
[
i
];
if
(
neiCalc
)
{
flux
=
-
flux
;
}
if
(
flux
<
0
.
0
)
{
...
...
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