Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB toolbox not working with SUNDIALS 2.7.0_2 #431

Closed
gpavanb-old opened this issue Feb 15, 2017 · 2 comments
Closed

MATLAB toolbox not working with SUNDIALS 2.7.0_2 #431

gpavanb-old opened this issue Feb 15, 2017 · 2 comments

Comments

@gpavanb-old
Copy link

Cantera version

2.3.0

Operating System

Mac OS X

Python/MATLAB version

2.7
MATLAB R2014b

Expected Behavior

MATLAB toolbox invoked

Actual Behavior

Invalid MEX-file '/Users/gpavanb/Cantera/lib/cantera/matlab/toolbox/ctmethods.mexmaci64':
dlopen(/Users/gpavanb/Cantera/lib/cantera/matlab/toolbox/ctmethods.mexmaci64, 6): Symbol not found: _CVLapackBand
Referenced from: /Users/gpavanb/Cantera/lib/cantera/matlab/toolbox/ctmethods.mexmaci64
Expected in: /Applications/MATLAB_R2014b.app/bin/maci64/libsundials_cvodes.2.dylib
in /Users/gpavanb/Cantera/lib/cantera/matlab/toolbox/ctmethods.mexmaci64

Error in adddir (line 11)
ctmethods(0, 3, d);

Steps to reproduce

  1. Install Cantera 2.3.0 with latest Sundials 2.7.0_2
  2. Enable MATLAB toolbox. Using scons to build and install
  3. Error on invoking any Cantera statement, e.g. gas = Solution('gri30.cti','gas')
@bryanwweber
Copy link
Member

Unfortunately, this is a well known issue with Matlab on all platforms. Since Matlab includes its own shared libraries for SUNDIALS, we usually recommend that users don't link to SUNDIALS when they use the Matlab toolbox. In fact, the official installation instructions for Homebrew on OS X explicitly state that SUNDIALS inclusion is turned off when building the Matlab interface (see item 3 on that list). Do you need SUNDIALS support for a particular use case?

@speth
Copy link
Member

speth commented Feb 15, 2017

I guess we should disable linking to an external SUNDIALS library when compilation of the Matlab toolbox is enabled, the same way we do for the external BLAS/LAPACK libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants