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
5555d568
Commit
5555d568
authored
Sep 15, 2020
by
Steffen Schotthöfer
Browse files
finished doublicate checking VOLUME_OUTPUT
Former-commit-id:
bc8e713c
parent
1f64aab7
Changes
2
Hide whitespace changes
Inline
Side-by-side
code/input/exampleMN.cfg
View file @
5555d568
...
...
@@ -52,6 +52,7 @@ BC_DIRICHLET = ( void )
% Quadrature Rule
%QUAD_TYPE = MONTE_CARLO
QUAD_TYPE = GAUSS_LEGENDRE_TENSORIZED
%
% Quadrature Order
QUAD_ORDER = 12
...
...
@@ -59,4 +60,4 @@ QUAD_ORDER = 12
%
% ----- Output ----
%
VOLUME_OUTPUT = (MINIMAL, MOMENTS
, MINIMAL
)
VOLUME_OUTPUT = (MINIMAL, MOMENTS)
code/src/common/config.cpp
View file @
5555d568
...
...
@@ -413,12 +413,16 @@ void Config::SetPostprocessing() {
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
++
;
if
(
it
==
dublicate_map
.
end
()
)
{
dublicate_map
.
insert
(
std
::
pair
<
VOLUME_OUTPUT
,
int
>
(
_volumeOutput
[
idx_volOutput
],
0
)
);
}
else
{
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."
,
ErrorMessages
::
Error
(
"Each output group for option VOLUME_OUTPUT can only be set once.
\n
Please check your .cfg file."
,
CURRENT_FUNCTION
);
}
}
...
...
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