Commit 2d72bbb48092cf5dfc587f32e3277687deaa1424
1 parent
3068c359
Reduce npars to 2 in stack_init() call.
A too large value produces too much computations.ZZ
Showing
2 changed files
with
3 additions
and
1 deletions
.gitignore
src/obs/GObservations_optimizer.cpp
| ... | ... | @@ -221,7 +221,7 @@ void GObservations::optimizer::eval(const GOptimizerPars& pars) |
| 221 | 221 | |
| 222 | 222 | // Set stack size and number of entries |
| 223 | 223 | int stack_size = (2*npars > 100000) ? 2*npars : 100000; |
| 224 | - int max_entries = (2*npars > 10000) ? 2*npars : 10000; | |
| 224 | + int max_entries = 2*npars; | |
| 225 | 225 | m_covar->stack_init(stack_size, max_entries); |
| 226 | 226 | |
| 227 | 227 | // Allocate vectors to save working variables of each thread | ... | ... |