From a32748e7eeee74472d15d8c00e48847bd7ef21f2 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Mon, 5 Jan 2009 11:10:40 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@8 ed2142bd-67ad-457f-ba7c-d818d4011675 --- models/strmodel1d.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'models') diff --git a/models/strmodel1d.cc b/models/strmodel1d.cc index df3cd40..26e853b 100644 --- a/models/strmodel1d.cc +++ b/models/strmodel1d.cc @@ -11,14 +11,15 @@ strmodel1d* strmodel1d::do_clone()const strmodel1d::strmodel1d() { - set_buildin_fun(); + set_buildin_fun(); } strmodel1d::strmodel1d(const strmodel1d& rhs) - :expr(rhs.expr), + :par_vec(rhs.par_vec), par_names(rhs.par_names), - var_name(rhs.var_name), - par_vec(rhs.par_vec) + expr(rhs.expr), + var_name(rhs.var_name) + { set_buildin_fun(); set_expr(expr,par_names,var_name); @@ -56,7 +57,7 @@ void strmodel1d::set_expr(const string& _expr, par_vec.resize(par_names.size()); mp.ClearVar(); // mp.ClearFun(); - for(int i=0;ipush_param_info(param_info >(par_names[i],0)); @@ -68,7 +69,7 @@ void strmodel1d::set_expr(const string& _expr, double strmodel1d::do_eval(const double& _x,const vector& p) { - for(int i=0;i