Commit 2d72bbb48092cf5dfc587f32e3277687deaa1424

Authored by Jürgen Knödlseder
1 parent 3068c359

Reduce npars to 2 in stack_init() call.

A too large value produces too much computations.ZZ
.gitignore
... ... @@ -34,6 +34,8 @@ m4/lt~obsolete.m4
34 34 .libs
35 35 .deps
36 36 *.fits
  37 +*.cpp~
  38 +*.hpp~
37 39 Makefile
38 40 stamp-h1
39 41 Makefile.in
... ...
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
... ...