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
e0f397d8
Commit
e0f397d8
authored
Nov 30, 2017
by
Andrew Heather
Browse files
BUG: ensightSurfaceReader - corrected initial list sizing
parent
d6b3595f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sampling/sampledSurface/readers/ensight/ensightSurfaceReaderTemplates.C
View file @
e0f397d8
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-201
6
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-201
7
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -75,7 +75,7 @@ Foam::tmp<Foam::Field<Type>> Foam::ensightSurfaceReader::readField
std
::
ostringstream
oss
;
label
nMask
=
0
;
for
(
size_t
chari
=
0
;
chari
<
fieldFileName
.
size
();
chari
++
)
for
(
size_t
chari
=
0
;
chari
<
fieldFileName
.
size
();
++
chari
)
{
if
(
fieldFileName
[
chari
]
==
'*'
)
{
...
...
@@ -130,7 +130,7 @@ Foam::tmp<Foam::Field<Type>> Foam::ensightSurfaceReader::readField
label
n
=
surfPtr_
->
size
();
forAll
(
values
,
cmptI
)
{
values
.
setSize
(
n
);
values
[
cmptI
].
setCapacity
(
n
);
}
// Read data file using schema generated while reading the surface
...
...
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