From 0055ca0cb97d3c30f5a63666056d0c8fb3ea0317 Mon Sep 17 00:00:00 2001 From: astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> Date: Sun, 30 Sep 2012 06:50:44 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@248 ed2142bd-67ad-457f-ba7c-d818d4011675 --- interface/opt_io.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'interface') diff --git a/interface/opt_io.hpp b/interface/opt_io.hpp index f81a14e..deeeeb5 100644 --- a/interface/opt_io.hpp +++ b/interface/opt_io.hpp @@ -39,6 +39,14 @@ namespace opt_utilities try { os<<f.get_model().get_type_name()<<"\n"; + os<<"Current model parameters:\n"; + os<<"==========================\n"; + for(int i=0;i<f.get_num_params();++i) + { + const param_info<Tp,Tstr>& pinfo=f.get_param_info(i); + os<<pinfo.get_name()<<"=\t"<<pinfo.get_value()<<"\n"; + } + os<<"==========================\n"; } catch(const model_not_defined& e) { -- cgit v1.2.2