patchGNU Octave - Patches: patch #8102, wrappers for stiff ode solvers

 
 

patch #8102: wrappers for stiff ode solvers

Submitter:  Carlo de Falco <cdf>
Submitted:  Thu 04 Jul 2013 04:54:43 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 10 Apr 2018 06:17:05 AM UTC, comment #5: 

This seems done to me, Octave 4.4 includes ode15i and ode15s using SUNDIALS IDA.

Mike Miller <mtmiller>
Group Member
Sat 05 Apr 2014 02:57:12 AM UTC, comment #4: 

Hi Carlo,

Yea, that's seems doable. I will start looking at it in a few days. Thanks!

Pooja Rao <prao>
Fri 04 Apr 2014 09:19:30 AM UTC, comment #3: 

Hi,

thanks for the patch!

Sundials already comes with a set of mex-files that can be run in Octave as well as in Matlab.

I think it would be less work for the Octave maintainers to maintain the code if the interface was constructed as an m-file
calling the sundials mex interface.

do you think you would be able to work it out that way?

c.

Carlo de Falco <cdf>
Group Member
Fri 04 Apr 2014 07:21:56 AM UTC, comment #2: 

This is the beginnings of a blueprint for the wrapper for IDA (Sundials). It has not been linked into Octave, tested or compiled yet. I'm putting it up in this initial form for reference as Jordi GH had asked for C++ sample code from me.  This wrapper implementation is being modeled after the DASSL wrapper structure. I will continue working on this as it is part of my larger project and still needs quite a lot of work. My next goal is to get it to link and compile with Octave. Thanks!

(file #31119)

Pooja Rao <prao>
Mon 24 Mar 2014 05:09:27 PM UTC, comment #1: 

This is an initial changeset for function ode15s (from jwe's implementation
patch #8102) to the ode-pkg. I have added two options ('InitialStep' and
'MaxStep') to this function along with changing the way it outputs its
solution. Earlier, it would take [tstart tfinal] as the time input vector and
produce output only at tstart and tfinal (because it uses LSODE /DASRT). To
make it produce solution values at points between tstart and tfinal, I used
linspace in the ode15s file. This is a temporary workaround.  I also added a
test and a couple of demos at the end.

The following is a brief list of TO-DOs for ode15s:

1) Add options to make it more Matlab compatible
2) Replace linspace with a more adaptive output
3) Replace LSODE with DASPK/DASRT  so it solves DAEs.
In its current form it uses DASRT but only when the 'Events'  option is
non-empty.

Thanks!

(file #31026)

Pooja Rao <prao>
Thu 04 Jul 2013 04:54:43 PM UTC, original submission:  

These functions are a starting point for the implementation of
matlab compatible ode15i and ode15s solvers.
They are just simplistic wrappers around dassl and daspk so there
is still work to be done before they can be committed.

Carlo de Falco <cdf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31119:  wrapperIDA.tar added by prao (10KiB - application/x-tar)
file #31026:  added_ode15s.diff added by prao (6KiB - text/x-diff)
file #28486:  ode-wrappers.tar.gz added by cdf (2KiB - application/x-gzip)

 

Depends on the following items: None found

Digest:
   patch dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by prao (Updated the item)
  • -email is unavailable- added by cdf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-10 mtmiller StatusNone Done
        Open/ClosedOpen Closed
    2014-04-04 prao Attached File- Added wrapperIDA.tar, #31119
    2014-03-24 prao Attached File- Added added_ode15s.diff, #31026
    2014-03-24 cdf Dependencies- patch #8418 is dependent
    2013-07-04 cdf Attached File- Added ode-wrappers.tar.gz, #28486

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code