diff --git a/src/Benchmarks/ODESolvers/tnl-benchmark-ode-solvers.h b/src/Benchmarks/ODESolvers/tnl-benchmark-ode-solvers.h index c9389e92203315bbde6c31913617b4fd155777ac..94c452cc6836883af1af94935b0d736273a7b5ef 100644 --- a/src/Benchmarks/ODESolvers/tnl-benchmark-ode-solvers.h +++ b/src/Benchmarks/ODESolvers/tnl-benchmark-ode-solvers.h @@ -192,7 +192,7 @@ configSetup( Config::ConfigDescription& config ) config.addEntryEnum( "overwrite" ); config.addEntry< int >( "loops", "Number of repetitions of the benchmark.", 10 ); config.addEntry< int >( "verbose", "Verbose mode.", 1 ); - config.addList< String >( "solvers", "Comma-separated list of solvers to run benchmarks for.", "all" ); + config.addList< String >( "solvers", "List of solvers to run benchmarks for.", {"all"} ); config.addEntryEnum< String >( "euler" ); config.addEntryEnum< String >( "merson" ); config.addEntryEnum< String >( "all" ); diff --git a/src/Examples/ConfigDescriptionExample.cpp b/src/Examples/ConfigDescriptionExample.cpp index 59958f1d103458f247ec501b0bb08a1142eac8e6..210d36750d3485fe3fd29c680c58e0374f327b2a 100644 --- a/src/Examples/ConfigDescriptionExample.cpp +++ b/src/Examples/ConfigDescriptionExample.cpp @@ -1,9 +1,10 @@ #include <iostream> #include <TNL/Config/ConfigDescription.h> +#include <TNL/String.h> using namespace TNL; using namespace std; - + int main() { Config::ConfigDescription confd; diff --git a/src/TNL/Containers/StaticVector.hpp b/src/TNL/Containers/StaticVector.hpp index 4a1b41b2198d114bfe31fed16b3d04f37cf3ad5d..bbcf8a09f5f88edc202438cb9e323bd227e6f813 100644 --- a/src/TNL/Containers/StaticVector.hpp +++ b/src/TNL/Containers/StaticVector.hpp @@ -42,12 +42,7 @@ StaticVector< Size, Real >::setup( const Config::ParameterContainer& parameters, const String& prefix ) { for( int i = 0; i < Size; i++ ) - { - double aux; - if( ! parameters.template getParameter< double >( prefix + convertToString( i ), aux ) ) - return false; - this->data[ i ] = aux; - } + this->data[ i ] = parameters.template getParameter< double >( prefix + convertToString( i ) ); return true; }