* updated eoParallel class in order to define the result filename according to the parallelization mode
This commit is contained in:
parent
16e6e7f3b7
commit
388d81b1ff
1 changed files with 28 additions and 0 deletions
|
|
@ -44,7 +44,35 @@ void eoParallel::_createParameters( eoParser& parser )
|
|||
|
||||
parser.processParam( _isEnabled, section );
|
||||
parser.processParam( _isDynamic, section );
|
||||
|
||||
std::string default_value( _prefix.defValue() );
|
||||
|
||||
if ( _isEnabled.value() )
|
||||
{
|
||||
if ( _isDynamic.value() )
|
||||
{
|
||||
default_value += "_dynamic.out";
|
||||
}
|
||||
else
|
||||
{
|
||||
default_value += "_parallel.out";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
default_value += "_sequential.out";
|
||||
}
|
||||
|
||||
_prefix.defValue( default_value );
|
||||
|
||||
std::cout << "defvalue: " << _prefix.defValue() << std::endl;
|
||||
|
||||
parser.processParam( _prefix, section );
|
||||
|
||||
std::cout << "value: " << parser.getParamWithLongName("parallelize-prefix")->getValue() << std::endl;
|
||||
|
||||
std::cout << "defvalue: " << _prefix.defValue() << std::endl;
|
||||
|
||||
}
|
||||
|
||||
void make_parallel(eoParser& parser)
|
||||
|
|
|
|||
Reference in a new issue