Closed GoogleCodeExporter closed 9 years ago
I can confirm the same problem, using Ubuntu 11.10 and Matlab 7.13 (x64).
However, this problem occurs with any of these BLAS/LAPACK libraries: (1)
Ubuntu's (Atlas-based), (2) Cantera's f2c versions, and (3) Matlab's libraries
(libmwlapack and libmwblas).
Original comment by yarmond
on 10 Apr 2012 at 10:36
Modifications in r1397 make the case where Cantera uses its own LAPACK/BLAS
implementation work again.
From what I can tell, what appears to be happening is that if Cantera is linked
to a dynamic LAPACK or BLAS library, when the .mex file is loaded, Matlab's
LAPACK and BLAS are used instead. The problem with this is that Matlab's BLAS
and LAPACK use 8-byte fortran integer types, rather than the more-common 4-byte
integer type that Cantera assumes.
Unfortunately, I'm not sure there's a way to detect the integer type given the
library, and furthermore this requires making changes at compile time that
depend on the link-time options, so we'd have to compile everything twice to
create a normal library that uses 4-byte integer BLAS and a Matlab extension
that uses 8-byte fortran integers.
Original comment by yarmond
on 11 Apr 2012 at 5:57
Original comment by yarmond
on 14 Nov 2012 at 4:27
Issue 169 has been merged into this issue.
Original comment by yarmond
on 5 Aug 2013 at 4:41
This issue was closed by revision r2617.
Original comment by yarmond
on 18 Dec 2013 at 5:45
Original issue reported on code.google.com by
spe.go...@gmail.com
on 14 Jan 2011 at 2:49