Commit 2659914b8046a6aa903a848a3ff11559ec38a6c8

Authored by Jürgen Knödlseder
1 parent a276a1d3

Add missing members to GOptimizerLM::copy_members() method

ChangeLog
1   -2021-03-03
  1 +2021-03-04
2 2  
3 3 * Version 2.0.0 released
4 4 ========================
5 5  
  6 + Add missing members to GOptimizerLM::copy_members() method
6 7 Store DRB, DRG and DRX as GCOMDri in GCOMObservation (#3560)
7 8 Implement COMPTEL response for diffuse models (#3558)
8 9 Implement COMPTEL background model computation (#3557)
... ...
1 1 New Features and Important Changes in GammaLib 2.0.0
2 2  
3   -3 March 2021
  3 +4 March 2021
4 4  
5 5  
6 6 1. Introduction
... ... @@ -200,6 +200,10 @@ only the function but also any available parameter gradients (#3333).
200 200  
201 201 11. Optimization module
202 202 -----------------------
  203 +The members m_npars, m_nfree and m_num_dec were not copied in the
  204 +GOptimizerLM::copy_members(). Copying of these missing members was added to the
  205 +method.
  206 +
203 207 Added GOptimizerLM::npars() and GOptimizerLM::nfree() methods.
204 208  
205 209  
... ...
README.md
1 1 GammaLib information
2 2 ====================
3   -* Version: 2.0.0.dev (3 March 2021)
  3 +* Version: 2.0.0.dev (4 March 2021)
4 4  
5 5 [![Build Status](https://cta-jenkins.irap.omp.eu/buildStatus/icon?job=gammalib-integrate-os)](https://cta-jenkins.irap.omp.eu/job/gammalib-integrate-os/)
6 6  
... ...
src/opt/GOptimizerLM.cpp
... ... @@ -676,6 +676,8 @@ void GOptimizerLM::init_members(void)
676 676 void GOptimizerLM::copy_members(const GOptimizerLM& opt)
677 677 {
678 678 // Copy attributes
  679 + m_npars = opt.m_npars;
  680 + m_nfree = opt.m_nfree;
679 681 m_lambda_start = opt.m_lambda_start;
680 682 m_lambda_inc = opt.m_lambda_inc;
681 683 m_lambda_dec = opt.m_lambda_dec;
... ... @@ -695,6 +697,7 @@ void GOptimizerLM::copy_members(const GOptimizerLM& opt)
695 697 m_delta = opt.m_delta;
696 698 m_status = opt.m_status;
697 699 m_iter = opt.m_iter;
  700 + m_num_dec = opt.m_num_dec;
698 701 m_logger = opt.m_logger;
699 702  
700 703 // Return
... ...