Commit 69001f776488de9e344eb46a0a841e09ebf6d7c7
1 parent
9f8a8ffe
Adapt to new GTime interface.
Showing
2 changed files
with
5 additions
and
9 deletions
src/ctmodel/ctmodel.cpp
| ... | ... | @@ -492,10 +492,8 @@ void ctmodel::setup_obs(void) |
| 492 | 492 | |
| 493 | 493 | // Setup time interval covered by model |
| 494 | 494 | GGti gti; |
| 495 | - GTime tmin; | |
| 496 | - GTime tmax; | |
| 497 | - tmin.met(m_tmin); | |
| 498 | - tmax.met(m_tmax); | |
| 495 | + GTime tmin(m_tmin); | |
| 496 | + GTime tmax(m_tmax); | |
| 499 | 497 | gti.append(tmin, tmax); |
| 500 | 498 | |
| 501 | 499 | // Setup skymap | ... | ... |
src/ctobssim/ctobssim.cpp
| ... | ... | @@ -537,10 +537,8 @@ void ctobssim::set_list(GCTAObservation* obs) |
| 537 | 537 | |
| 538 | 538 | // Set GTI |
| 539 | 539 | GGti gti; |
| 540 | - GTime tstart; | |
| 541 | - GTime tstop; | |
| 542 | - tstart.met(m_tmin); | |
| 543 | - tstop.met(m_tmax); | |
| 540 | + GTime tstart(m_tmin); | |
| 541 | + GTime tstop(m_tmax); | |
| 544 | 542 | gti.append(tstart, tstop); |
| 545 | 543 | |
| 546 | 544 | // Set energy boundaries |
| ... | ... | @@ -927,7 +925,7 @@ void ctobssim::init_members(void) |
| 927 | 925 | |
| 928 | 926 | // Set fixed parameters |
| 929 | 927 | m_area = 19634954.0 * 1.0e4; //!< pi*(2500^2) m^2 |
| 930 | - m_time_max.met(1800.0); //!< Maximum length of time slice (s) | |
| 928 | + m_time_max.secs(1800.0); //!< Maximum length of time slice (s) | |
| 931 | 929 | |
| 932 | 930 | // Set logger properties |
| 933 | 931 | log.date(true); | ... | ... |