Commit 0e61913d4f0a862dcc2e748e57972703c898d9fa
1 parent
40599f45
Write models into logger (should be obvious for a task named ctmodel :-)
Showing
1 changed file
with
8 additions
and
1 deletions
src/ctmodel/ctmodel.cpp
| 1 | /*************************************************************************** | 1 | /*************************************************************************** |
| 2 | * ctmodel - Model cube generation tool * | 2 | * ctmodel - Model cube generation tool * |
| 3 | * ----------------------------------------------------------------------- * | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2012-2014 by Juergen Knoedlseder * | 4 | + * copyright (C) 2012-2015 by Juergen Knoedlseder * |
| 5 | * ----------------------------------------------------------------------- * | 5 | * ----------------------------------------------------------------------- * |
| 6 | * * | 6 | * * |
| 7 | * This program is free software: you can redistribute it and/or modify * | 7 | * This program is free software: you can redistribute it and/or modify * |
| @@ -238,6 +238,13 @@ void ctmodel::run(void) | @@ -238,6 +238,13 @@ void ctmodel::run(void) | ||
| 238 | log << m_obs << std::endl; | 238 | log << m_obs << std::endl; |
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | + // Write models into logger | ||
| 242 | + if (logTerse()) { | ||
| 243 | + log << std::endl; | ||
| 244 | + log.header1("Models"); | ||
| 245 | + log << m_obs.models() << std::endl; | ||
| 246 | + } | ||
| 247 | + | ||
| 241 | // Write header | 248 | // Write header |
| 242 | if (logTerse()) { | 249 | if (logTerse()) { |
| 243 | log << std::endl; | 250 | log << std::endl; |