Coder Social home page Coder Social logo

voduchuy / fspcvode_mex Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 28 KB

Matlab interface with Sundials's CVODES library using Mex to solve ODEs of the form dx/dt = A(t)*x.

License: MIT License

C 95.55% CMake 4.45%
matlab cvode cvodes mex linear-systems

fspcvode_mex's Introduction

FSPCVODE_MEX

Codes for building Matlab interface with Sundials's CVODES library using Mex. These codes target only initial value problems of the form dx/dt = A(t)*x.

Prerequisites:

  • CMake.
  • Sundials.
  • Matlab.

To build (using command line):

  • Create an empty subfolder within the FSPCVODE_MEX folder called "build".
  • Change directory (via, e.g, cd) to "build".
  • Type "cmake ..".
  • Type "make". The C source files are compiled into shared libraries.
  • Open Matlab, run the script 'BuildMexFiles.m'.
  • The Mex solver is ready to use. For more information, see the comments in "FspCVodeMex.c".

Advanced options:

  1. Build with OpenMP support:
  • The library can optionally use Sundials' OpenMP support (provided that this was enabled for your Sundials build). To enable OpenMP, instead of "cmake..", type

cmake -DUSE_OPENMP=ON ..

Note that the only compiler supported by Matlab on MacOS does not support OpenMP. If you are building this library in MacOS, the OpenMP support will always be turned off.

fspcvode_mex's People

Contributors

voduchuy avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.