Commit d32e8946f995d3a88999f19258ade24363ce7af6

Authored by Jürgen Knödlseder
1 parent 89b294ab

Adding an rho integration boundary at rho=semiminor solved the problem with the …

…strange Npred profile.
inst/cta/src/GCTAResponseIrf.cpp
... ... @@ -2409,6 +2409,12 @@ double GCTAResponseIrf::npred_elliptical(const GSource& source,
2409 2409 bounds.push_back(transition_point);
2410 2410 }
2411 2411  
  2412 + // If the integration range includes the semiminor boundary, then
  2413 + // add an integration boundary at that location
  2414 + if (semiminor > rho_min && semiminor < rho_max) {
  2415 + bounds.push_back(semiminor);
  2416 + }
  2417 +
2412 2418 // Integrate kernel
2413 2419 npred = integral.romberg(bounds, iter_rho);
2414 2420  
... ...