mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
octave: Revert use of auto for octave version before 7
This commit is contained in:
parent
cfff6ac024
commit
9dfe155c5a
@ -66,7 +66,7 @@ void getActiveCellInfo(int32NDArray& activeCellInfo, const QString &hostName, qu
|
||||
#if OCTAVE_MAJOR_VERSION > 6
|
||||
auto internalMatrixData = (qint32*)activeCellInfo.fortran_vec();
|
||||
#else
|
||||
auto internalMatrixData = (qint32*)activeCellInfo.fortran_vec()->mex_get_data();
|
||||
qint32* internalMatrixData = (qint32*)activeCellInfo.fortran_vec()->mex_get_data();
|
||||
#endif
|
||||
|
||||
QStringList errorMessages;
|
||||
|
@ -66,7 +66,7 @@ void getSelectedCells(int32NDArray& selectedCellInfo, const QString &hostName, q
|
||||
#if OCTAVE_MAJOR_VERSION > 6
|
||||
auto internalMatrixData = (qint32*)selectedCellInfo.fortran_vec();
|
||||
#else
|
||||
auto internalMatrixData = (qint32*)selectedCellInfo.fortran_vec()->mex_get_data();
|
||||
qint32* internalMatrixData = (qint32*)selectedCellInfo.fortran_vec()->mex_get_data();
|
||||
#endif
|
||||
|
||||
QStringList errorMessages;
|
||||
|
@ -57,7 +57,7 @@ void setEclipseProperty(const Matrix& propertyFrames, const QString &hostName, q
|
||||
#if OCTAVE_MAJOR_VERSION > 6
|
||||
auto internalData = propertyFrames.data();
|
||||
#else
|
||||
auto internalData = propertyFrames.fortran_vec();
|
||||
const double* internalData = propertyFrames.fortran_vec();
|
||||
#endif
|
||||
|
||||
QStringList errorMessages;
|
||||
|
@ -74,7 +74,7 @@ void setEclipseProperty(const NDArray& propertyFrames, const QString &hostName,
|
||||
#if OCTAVE_MAJOR_VERSION > 6
|
||||
auto internalData = propertyFrames.data();
|
||||
#else
|
||||
auto internalData = propertyFrames.fortran_vec();
|
||||
const double* internalData = propertyFrames.fortran_vec();
|
||||
#endif
|
||||
|
||||
QStringList errorMessages;
|
||||
|
Loading…
Reference in New Issue
Block a user