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-plus
Commits
3f4046ee
Commit
3f4046ee
authored
Oct 04, 2017
by
Mark OLESEN
Browse files
BUG: index error when parsing integers from prefix_rayId_lambdaId
parent
5e7a2917
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/thermophysicalModels/radiation/radiationModels/fvDOM/fvDOM/fvDOM.C
View file @
3f4046ee
...
...
@@ -530,11 +530,11 @@ void Foam::radiation::fvDOM::setRayIdLambdaId
label
&
lambdaId
)
const
{
//
a
ssuming name is in the form: CHARS_rayId_lambdaId
//
A
ssuming name is in the form: CHARS_rayId_lambdaId
const
auto
i1
=
name
.
find
(
'_'
);
const
auto
i2
=
name
.
r
find
(
'_'
);
const
auto
i2
=
name
.
find
(
'_'
,
i1
+
1
);
rayId
=
readLabel
(
name
.
substr
(
i1
+
1
,
i2
-
1
));
rayId
=
readLabel
(
name
.
substr
(
i1
+
1
,
i2
-
i1
-
1
));
lambdaId
=
readLabel
(
name
.
substr
(
i2
+
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