Dynare++: another change related to default number of threads

Forgotten in commit 733308807.
time-shift
Sébastien Villemot 2019-01-29 20:31:06 +01:00
parent 733308807d
commit a122927872
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <getopt.h>
#include <cstdio>
#include <cstring>
#include <thread>
const char *help_str
= "usage: dynare++ [--help] [--version] [options] <model file>\n"
@ -49,7 +50,7 @@ DynareParams::DynareParams(int argc, char **argv)
: modname(nullptr), num_per(100), num_burn(0), num_sim(80),
num_rtper(0), num_rtsim(0),
num_condper(0), num_condsim(0),
num_threads(2), num_steps(0),
num_threads(std::thread::hardware_concurrency()), num_steps(0),
prefix("dyn"), seed(934098), order(-1), ss_tol(1.e-13),
check_along_path(false), check_along_shocks(false),
check_on_ellipse(false), check_evals(1000), check_num(10), check_scale(2.0),