changeset 4122:19a1626b8d57

[project @ 2002-10-23 22:10:53 by jwe]
author jwe
date Wed, 23 Oct 2002 22:10:54 +0000
parents a0c710c20da5
children da4c69a81137
files ChangeLog mk-opts.pl src/ChangeLog src/DLD-FUNCTIONS/daspk.cc src/DLD-FUNCTIONS/dasrt.cc src/DLD-FUNCTIONS/dassl.cc src/DLD-FUNCTIONS/fsolve.cc src/DLD-FUNCTIONS/lsode.cc src/DLD-FUNCTIONS/odessa.cc src/DLD-FUNCTIONS/quad.cc
diffstat 10 files changed, 29 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 23 03:34:11 2002 +0000
+++ b/ChangeLog	Wed Oct 23 22:10:54 2002 +0000
@@ -1,3 +1,8 @@
+2002-10-23  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* mk-opts.pl (emit_opt_class_header): Make set_options another
+	name for copy.
+
 2002-10-17  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* Makeconf.in (do-subst-config-vals): Don't substitute
--- a/mk-opts.pl	Wed Oct 23 03:34:11 2002 +0000
+++ b/mk-opts.pl	Wed Oct 23 22:10:54 2002 +0000
@@ -406,6 +406,11 @@
   print "      reset = opt.reset;
     }\n";
 
+  ## For backward compatibility and because set_options is probably
+  ## a better name in some contexts:
+
+  print "\n  void set_options (const ${class_name}& opt) { copy (opt); }\n";
+
   print "\n  void set_default_options (void) { init (); }\n";
 
   for ($i = 0; $i < $opt_num; $i++)
--- a/src/ChangeLog	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/ChangeLog	Wed Oct 23 22:10:54 2002 +0000
@@ -1,3 +1,13 @@
+2002-10-23  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* DLD-FUNCTIONS/daspk.cc (daspk): Use set_options, not copy. 
+	* DLD-FUNCTIONS/dasrt.cc (dasrt): Likewise.
+	* DLD-FUNCTIONS/dassl.cc (dassl): Likewise.
+	* DLD-FUNCTIONS/fsolve.cc (fsolve): Likewise.
+	* DLD-FUNCTIONS/lsode.cc (lsode): Likewise.
+	* DLD-FUNCTIONS/odessa.cc (Fodessa): Likewise.
+	* DLD-FUNCTIONS/quad.cc (Fquad): Likewise.
+
 2002-10-22  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* oct-map.cc (Octave_map::assign): Fix typo in resizing.
--- a/src/DLD-FUNCTIONS/daspk.cc	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/DLD-FUNCTIONS/daspk.cc	Wed Oct 23 22:10:54 2002 +0000
@@ -289,7 +289,7 @@
 
       DAEFunc func (daspk_user_function);
       DASPK dae (state, deriv, tzero, func);
-      dae.copy (daspk_opts);
+      dae.set_options (daspk_opts);
 
       Matrix output;
       Matrix deriv_output;
--- a/src/DLD-FUNCTIONS/dasrt.cc	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/DLD-FUNCTIONS/dasrt.cc	Wed Oct 23 22:10:54 2002 +0000
@@ -494,7 +494,7 @@
 
   DASRT dae = DASRT (state, stateprime, tzero, func);
 
-  dae.copy (dasrt_opts);
+  dae.set_options (dasrt_opts);
 
   if (crit_times_set)
     output = dae.integrate (out_times, crit_times);
--- a/src/DLD-FUNCTIONS/dassl.cc	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/DLD-FUNCTIONS/dassl.cc	Wed Oct 23 22:10:54 2002 +0000
@@ -394,7 +394,7 @@
 
       DASSL dae (state, deriv, tzero, func);
 
-      dae.copy (dassl_opts);
+      dae.set_options (dassl_opts);
 
       Matrix output;
       Matrix deriv_output;
--- a/src/DLD-FUNCTIONS/fsolve.cc	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/DLD-FUNCTIONS/fsolve.cc	Wed Oct 23 22:10:54 2002 +0000
@@ -193,7 +193,7 @@
 
       NLFunc nleqn_fcn (fsolve_user_function);
       NLEqn nleqn (x, nleqn_fcn);
-      nleqn.copy (fsolve_opts);
+      nleqn.set_options (fsolve_opts);
 
       int info;
       ColumnVector soln = nleqn.solve (info);
--- a/src/DLD-FUNCTIONS/lsode.cc	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/DLD-FUNCTIONS/lsode.cc	Wed Oct 23 22:10:54 2002 +0000
@@ -358,7 +358,7 @@
 
       LSODE ode (state, tzero, func);
 
-      ode.copy (lsode_opts);
+      ode.set_options (lsode_opts);
 
       Matrix output;
       if (crit_times_set)
--- a/src/DLD-FUNCTIONS/odessa.cc	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/DLD-FUNCTIONS/odessa.cc	Wed Oct 23 22:10:54 2002 +0000
@@ -517,7 +517,7 @@
 	? ODESSA (state, theta, sensitivity_guess, tzero, func)
 	: ODESSA (state, tzero, func);
 	  
-      ode.copy (odessa_opts);
+      ode.set_options (odessa_opts);
 
       if (crit_times_set)
 	output = ode.integrate (out_times, crit_times);
--- a/src/DLD-FUNCTIONS/quad.cc	Wed Oct 23 03:34:11 2002 +0000
+++ b/src/DLD-FUNCTIONS/quad.cc	Wed Oct 23 22:10:54 2002 +0000
@@ -249,7 +249,7 @@
 	  if (indefinite)
 	    {
 	      IndefQuad iq (quad_user_function, bound, indef_type);
-	      iq.copy (quad_opts);
+	      iq.set_options (quad_opts);
 	      val = iq.integrate (ier, nfun, abserr);
 	    }
 	  else
@@ -257,13 +257,13 @@
 	      if (have_sing)
 		{
 		  DefQuad dq (quad_user_function, a, b, sing);
-		  dq.copy (quad_opts);
+		  dq.set_options (quad_opts);
 		  val = dq.integrate (ier, nfun, abserr);
 		}
 	      else
 		{
 		  DefQuad dq (quad_user_function, a, b);
-		  dq.copy (quad_opts);
+		  dq.set_options (quad_opts);
 		  val = dq.integrate (ier, nfun, abserr);
 		}
 	    }