[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8979] Add two functions to check and set
From: |
Francesco Faccio |
Subject: |
[Octave-patch-tracker] [patch #8979] Add two functions to check and set ODE options |
Date: |
Thu, 14 Apr 2016 21:17:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/patch/?8979>
Summary: Add two functions to check and set ODE options
Project: GNU Octave
Submitted by: francesco_faccio
Submitted on: Thu 14 Apr 2016 09:17:41 PM GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
These functions are a starting point for checking options and filling the
option structure of a generic ODE solver.
The first private function I have prepared is check_input.m:
[fun, trange, init, odeopts] = check_input (fun, trange, init, solver,
varargin)
that checks the correctness of the input and returns an option struct.
The second function is set_ode_options.m:
[fun, odeopts] = set_ode_options (fun, trange, init, odeopts, order, solver,
default_input)
that checks if options which are not allowed are passed, sets the default
options and fills the option struct.
default_input is a struct that at the beginning of each solver has to be
filled in order to specify which options are allowed and, if they are allowed,
which are their default values.
I have modified the code of ode23 and ode45 to use these two common private
functions.
I would like to receive some suggestions in order to make these functions more
generic. I have removed the possibility of integrating using integrate_n_step
and integrate_const: only the adaptive integration is allowed (I made this
decision because I don't see a particular advantage using these methods and
because there's no Matlab incompatibility).
I would like also to write a private function that handles postprocessing,
stats and event detection for each solver.
Do you think it could be useful?
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 14 Apr 2016 09:17:41 PM GMT Name: changeset.zip Size: 10kB By:
francesco_faccio
<http://savannah.gnu.org/patch/download.php?file_id=36928>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8979>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8979] Add two functions to check and set ODE options,
Francesco Faccio <=