Commit 03332a67aaf9cf909b139695e4b85ef74e3d8349

Authored by Jürgen Knödlseder
1 parent 2bb02a07

Forward working log file pointer to ctobssim::set_mc_id_names() (#2123)

The working log file pointer was not forwarded to ctobssim::set_mc_id_names() and consequently the standard log file pointer was used, which occasionally lead to the exception during the Python unit test. Now the log file pointer is forwarded properly.
Showing 1 changed file with 1 additions and 1 deletions
src/ctobssim/ctobssim.cpp
... ... @@ -364,7 +364,7 @@ void ctobssim::run(void)
364 364 simulate_background(&obs_clone, models, m_rans[i], &wrklog);
365 365  
366 366 // Set Monte Carlo identifier and name correspondance
367   - set_mc_id_names(&obs_clone, models);
  367 + set_mc_id_names(&obs_clone, models, &wrklog);
368 368  
369 369 // Dump simulation results
370 370 if (logTerse()) {
... ...