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
471ce6fc
Commit
471ce6fc
authored
Sep 14, 2020
by
steffen.schotthoefer
Browse files
start catching doublicates in CVOLUME OUTPUT
parent
c4fd60ee
Pipeline
#109538
passed with stage
in 18 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
code/input/exampleMN.cfg
View file @
471ce6fc
...
...
@@ -59,4 +59,4 @@ QUAD_ORDER = 12
%
% ----- Output ----
%
VOLUME_OUTPUT = (MINIMAL, MOMENTS)
VOLUME_OUTPUT = (MINIMAL, MOMENTS
, MINIMAL
)
code/src/common/config.cpp
View file @
471ce6fc
...
...
@@ -408,6 +408,22 @@ void Config::SetPostprocessing() {
}
// Output Postprocessing
// check for doublicates and remove them
std
::
map
<
VOLUME_OUTPUT
,
int
>
dublicate_map
;
for
(
unsigned
short
idx_volOutput
=
0
;
idx_volOutput
<
_nVolumeOutput
;
idx_volOutput
++
)
{
std
::
map
<
VOLUME_OUTPUT
,
int
>::
iterator
it
=
dublicate_map
.
find
(
_volumeOutput
[
idx_volOutput
]
);
it
->
second
++
;
}
for
(
auto
&
e
:
dublicate_map
)
{
std
::
cout
<<
'{'
<<
e
.
first
<<
", "
<<
e
.
second
<<
'}'
<<
'\n'
;
if
(
e
.
second
>
0
)
{
ErrorMessages
::
Error
(
"Each output group for option VOLUME_OUTPUT can only be set once.
\n
Please check your .cfg file."
,
CURRENT_FUNCTION
);
}
}
// Set default volume output
if
(
_nVolumeOutput
==
0
)
{
// If no specific output is chosen, use "MINIMAL"
_nVolumeOutput
=
1
;
_volumeOutput
.
push_back
(
MINIMAL
);
...
...
steffen.schotthoefer
@kx5574
mentioned in commit
1f64aab7
·
Apr 30, 2021
mentioned in commit
1f64aab7
mentioned in commit 1f64aab7d3f6b2a1cadb36134d6cb8a6fce4765f
Toggle commit list
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