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
87b8f862
Commit
87b8f862
authored
Aug 13, 2009
by
mattijs
Browse files
illegal use of List_ELEM macro
parent
a0b0e23c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Lists/List/List.C
View file @
87b8f862
...
...
@@ -162,13 +162,14 @@ Foam::List<T>::List(const UList<T>& a, const unallocLabelList& map)
{
if
(
this
->
size_
)
{
// Note:cannot use List_ELEM since third argument has to be index.
this
->
v_
=
new
T
[
this
->
size_
];
List_ACCESS
(
T
,
(
*
this
),
vp
);
List_CONST_ACCESS
(
T
,
a
,
ap
);
List_FOR_ALL
(
map
,
i
)
List_ELEM
((
*
this
),
vp
,
i
)
=
List_ELEM
(
a
,
ap
,
(
map
[
i
]));
List_END_FOR_ALL
forAll
(
*
this
,
i
)
{
this
->
v_
[
i
]
=
a
[
map
[
i
]];
}
}
}
...
...
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