Dynare++: ensure that testsuite does not fail because of safety check
Safety check introduced in c10d8daf9
.
Ref #217
time-shift
parent
be170f131c
commit
040c4f11a7
|
@ -1106,15 +1106,11 @@ main()
|
||||||
all_tests.push_back(std::make_unique<UnfoldZContSmall>());
|
all_tests.push_back(std::make_unique<UnfoldZContSmall>());
|
||||||
all_tests.push_back(std::make_unique<UnfoldZCont>());
|
all_tests.push_back(std::make_unique<UnfoldZCont>());
|
||||||
|
|
||||||
// find maximum dimension and maximum nvar
|
/* Initialize library. We do it for each test individually instead of
|
||||||
int dmax = 0;
|
computing the maximum dimension and number of variables, because otherwise it
|
||||||
int nvmax = 0;
|
does not pass the check on maximum problem size. */
|
||||||
for (const auto &test : all_tests)
|
for (const auto &test : all_tests)
|
||||||
{
|
TLStatic::init(test->dim, test->nvar);
|
||||||
dmax = std::max(dmax, test->dim);
|
|
||||||
nvmax = std::max(nvmax, test->nvar);
|
|
||||||
}
|
|
||||||
TLStatic::init(dmax, nvmax); // initialize library
|
|
||||||
|
|
||||||
// launch the tests
|
// launch the tests
|
||||||
int success = 0;
|
int success = 0;
|
||||||
|
|
Loading…
Reference in New Issue