https://github.com/voduchuy/fspcvode_mex
Matlab interface with Sundials's CVODES library using Mex to solve ODEs of the form dx/dt = A(t)*x.
https://github.com/voduchuy/fspcvode_mex
cvode cvodes linear-systems matlab mex
Last synced: 6 months ago
JSON representation
Matlab interface with Sundials's CVODES library using Mex to solve ODEs of the form dx/dt = A(t)*x.
- Host: GitHub
- URL: https://github.com/voduchuy/fspcvode_mex
- Owner: voduchuy
- License: mit
- Created: 2019-04-11T21:30:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T02:53:14.000Z (almost 5 years ago)
- Last Synced: 2023-10-20T23:42:58.927Z (almost 3 years ago)
- Topics: cvode, cvodes, linear-systems, matlab, mex
- Language: C
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.