Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
f5785da9
Commit
f5785da9
authored
Sep 14, 2020
by
steffen.schotthoefer
Browse files
Fixed index out of bounds bug when MINIMAL is not the first volume output
Former-commit-id:
c4fd60ee
parent
3ec1aaf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
code/src/common/io.cpp
View file @
f5785da9
/*!
* \file io.cpp
* \brief Set of utility io functions for rtns
* \author S. Schotthoefer, J. Wolters et al.
*/
#include "common/io.h"
#include "common/config.h"
#include "common/mesh.h"
...
...
code/src/solvers/mnsolver.cpp
View file @
f5785da9
...
...
@@ -206,8 +206,8 @@ void MNSolver::PrepareOutputFields() {
_outputFields
[
idx_group
].
resize
(
1
);
_outputFieldNames
[
idx_group
].
resize
(
1
);
_outputFields
[
0
][
0
].
resize
(
_nCells
);
_outputFieldNames
[
0
][
0
]
=
"radiation flux density"
;
_outputFields
[
idx_group
][
0
].
resize
(
_nCells
);
_outputFieldNames
[
idx_group
][
0
]
=
"radiation flux density"
;
break
;
case
MOMENTS
:
...
...
code/src/solvers/pnsolver.cpp
View file @
f5785da9
...
...
@@ -371,8 +371,8 @@ void PNSolver::PrepareOutputFields() {
_outputFields
[
idx_group
].
resize
(
1
);
_outputFieldNames
[
idx_group
].
resize
(
1
);
_outputFields
[
0
][
0
].
resize
(
_nCells
);
_outputFieldNames
[
0
][
0
]
=
"radiation flux density"
;
_outputFields
[
idx_group
][
0
].
resize
(
_nCells
);
_outputFieldNames
[
idx_group
][
0
]
=
"radiation flux density"
;
break
;
case
MOMENTS
:
...
...
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