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
923764e3
Commit
923764e3
authored
Apr 15, 2009
by
mattijs
Browse files
in-place subset bug
parent
42c075d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistributeTemplates.C
View file @
923764e3
...
...
@@ -58,7 +58,13 @@ void Foam::mapDistribute::distribute
}
// Subset myself
UIndirectList
<
T
>
subField
(
field
,
subMap
[
Pstream
::
myProcNo
()]);
const
labelList
&
mySubMap
=
subMap
[
Pstream
::
myProcNo
()];
List
<
T
>
subField
(
mySubMap
.
size
());
forAll
(
mySubMap
,
i
)
{
subField
[
i
]
=
field
[
mySubMap
[
i
]];
}
// Receive sub field from myself (subField)
const
labelList
&
map
=
constructMap
[
Pstream
::
myProcNo
()];
...
...
@@ -355,7 +361,13 @@ void Foam::mapDistribute::distribute
}
// Subset myself
UIndirectList
<
T
>
subField
(
field
,
subMap
[
Pstream
::
myProcNo
()]);
const
labelList
&
mySubMap
=
subMap
[
Pstream
::
myProcNo
()];
List
<
T
>
subField
(
mySubMap
.
size
());
forAll
(
mySubMap
,
i
)
{
subField
[
i
]
=
field
[
mySubMap
[
i
]];
}
// Receive sub field from myself (subField)
const
labelList
&
map
=
constructMap
[
Pstream
::
myProcNo
()];
...
...
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