Commit 5555d568 authored by Steffen Schotthöfer's avatar Steffen Schotthöfer
Browse files

finished doublicate checking VOLUME_OUTPUT


Former-commit-id: bc8e713c
parent 1f64aab7
......@@ -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)
......@@ -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.\nPlease check your .cfg file.",
CURRENT_FUNCTION );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment