Skip to content
GitLab
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
b1fe3cc5
Commit
b1fe3cc5
authored
Feb 19, 2009
by
mattijs
Browse files
processorFvPatchField now holds opposite value; not interpolate
parent
5e2a16d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/parallelProcessing/decomposePar/fvFieldDecomposer.C
View file @
b1fe3cc5
...
...
@@ -59,7 +59,6 @@ processorVolPatchFieldDecomposer
addressing_
(
addressingSlice
.
size
()),
weights_
(
addressingSlice
.
size
())
{
const
scalarField
&
weights
=
mesh
.
weights
().
internalField
();
const
labelList
&
own
=
mesh
.
faceOwner
();
const
labelList
&
neighb
=
mesh
.
faceNeighbour
();
...
...
@@ -72,15 +71,22 @@ processorVolPatchFieldDecomposer
{
// This is a regular face. it has been an internal face
// of the original mesh and now it has become a face
// on the parallel boundary
addressing_
[
i
].
setSize
(
2
);
weights_
[
i
].
setSize
(
2
);
// on the parallel boundary.
// Give face the value of the neighbour.
addressing_
[
i
][
0
]
=
own
[
ai
];
addressing_
[
i
][
1
]
=
neighb
[
ai
];
addressing_
[
i
].
setSize
(
1
);
weights_
[
i
].
setSize
(
1
);
weights_
[
i
][
0
]
=
1
.
0
;
weights_
[
i
][
0
]
=
weights
[
ai
];
weights_
[
i
][
1
]
=
1
.
0
-
weights
[
ai
];
if
(
addressingSlice
[
i
]
>=
0
)
{
// I have the owner so use the neighbour value
addressing_
[
i
][
0
]
=
neighb
[
ai
];
}
else
{
addressing_
[
i
][
0
]
=
own
[
ai
];
}
}
else
{
...
...
@@ -89,7 +95,7 @@ processorVolPatchFieldDecomposer
// do the interpolation properly (I would need to look
// up the different (face) list of data), so I will
// just grab the value from the owner cell
//
addressing_
[
i
].
setSize
(
1
);
weights_
[
i
].
setSize
(
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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