OPM/opm-core — pull request #44 by bska (2012-10-04 23:19:28+00:00)
Title: Tighten LAPACK and MEX Support

This change tightens OPM-Core's use of the LAPACK (and BLAS) libraries. When used in concert with the MATLAB software in, OPM-Core must honour MATLAB's eight-byte size types (in the `-largeArrayDims` case). This is the purpose of the `MAT_SIZE_T` macro in ``. In other words, all sizes (e.g., the leading dimensions and actual matrix sizes) must be represented using `MAT_SIZE_T` rather than unadorned `int`s.

This change enforces the use of `MAT_SIZE_T` where applicable throughout OPM-Core.

In a related part of this change we remove some of the remaining obstacles to using OPM-Core directly in MEX files. We are not quite ready to start building MEX files without any additional support code, but this brings us closer to the goal.