patchGNU Octave - Patches: patch #10278, GSoC 2022: add support for sparse...

 
 

patch #10278: GSoC 2022: add support for sparse computations in ode15{i,s} using Octave classes , making dependency on KLU optional.

Submitter:  Sarrah Bastawala <sarrah>
Submitted:  Mon 12 Sep 2022 04:04:12 PM UTC
 
Category:  Core : other Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Tue 13 Sep 2022 09:24:26 AM UTC, comment #1: 

Here are a few additional relevant links associated with this project :

Discussion with the Community : https://octave.discourse.group/t/gsoc-2022-project-ode15-i-s/1343?u=sarrah-basta

Progress documentation throughout the Project : https://sarrah-basta.github.io/blogs/

Final Project Report for GSoC Submission : https://sarrah-basta.github.io/blogs/2022/09/11/GSoC_'22_GNU_Octave_Project_Report.html

Also attaching an updated version (v2) of the patch for the project.

(file #53687)

Sarrah Bastawala <sarrah>
Mon 12 Sep 2022 04:04:12 PM UTC, original submission:  

Hi,
The attached patch implements the added features of making the KLU dependency optional for ode15{i,s} DAE solvers into Octave core.

This is the result of my (Sarrah Bastawala 's) GSOC 2022 project mentored by Carlo de Falco that has been kept up to date in a separate github repository until now.

The repository is here:
https://github.com/sarrah-basta/octave.git

The changelog message to best describe the code is as follows :

add support for sparse computations in ode15{i,s} using Octave classes, making the dependency on SUNDIALS interface to KLU optional ( GSoC '22)

* libinterp/dldfcn/oct-sundials.h : add declarations of custom implementations to SUNDIALS NVECTOR, SUNMATRIX and SUNLINEARSOLVER APIs using Octave's classes.
* libinterp/dldfcn/oct-sundials.cc: add definitions of exported functions declared in corresponding header file
* libinterp/dldfcn/__ode15__.cc : add motifications and optimizations to make ode15{i,s} solvers default to using Octave's custom implementations and solver in IDA for sparse computations if KLU is not found.binterp
* libinterp/dldfcn/config-module.awk : add build dependencies for __ode15__ oct-file.
* configure.ac : modify warnings to let user know ode15{i,s} support sparse computations even if KLU is not found.
* scripts/ode/ode15i.m : modify tests using sparse Jacobians to run even without KLU
* scripts/ode/ode15s.m : modify tests using sparse Jacobians to run even without KLU
---
 configure.ac                       |    4 +-
 libinterp/dldfcn/__ode15__.cc      |  295 ++++++--
 libinterp/dldfcn/config-module.awk |   10 +-
 libinterp/dldfcn/oct-sundials.cc   | 1134 ++++++++++++++++++++++++++++
 libinterp/dldfcn/oct-sundials.h    |  244 ++++++
 scripts/ode/ode15i.m               |    4 +-
 scripts/ode/ode15s.m               |   10 +-
 7 files changed, 1618 insertions(+), 83 deletions(-)

Sarrah Bastawala <sarrah>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by sarrah (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-13 siko1056 Summaryadd support for sparse computations in ode15{i,s} using Octave classes , making dependency on KLU optional. GSoC 2022: add support for sparse computations in ode15{i,s} using Octave classes , making dependency on KLU optional.
    2022-09-13 sarrah Attached File- Added final_patch_gsoc_ode15i_2022_v2.txt, #53687
    2022-09-12 sarrah Attached File- Added final_patch_gsoc_ode15i_2022.txt, #53681

    Back to the top


    Powered by Savane 3.9