mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11042 octave: Adjustments for updated API in version 7
Minor adjustments in data access for octave version 7. Previously used and verified version is octave 4.
This commit is contained in:
@@ -63,7 +63,12 @@ void getActiveCellInfo(int32NDArray& activeCellInfo, const QString &hostName, qu
|
||||
return;
|
||||
}
|
||||
|
||||
qint32* internalMatrixData = (qint32*)activeCellInfo.fortran_vec()->mex_get_data();
|
||||
#if OCTAVE_MAJOR_VERSION > 6
|
||||
auto internalMatrixData = (qint32*)activeCellInfo.fortran_vec();
|
||||
#else
|
||||
auto internalMatrixData = (qint32*)activeCellInfo.fortran_vec()->mex_get_data();
|
||||
#endif
|
||||
|
||||
QStringList errorMessages;
|
||||
if (!RiaSocketDataTransfer::readBlockDataFromSocket(&socket, (char*)(internalMatrixData), columnCount * byteCountForOneTimestep, errorMessages))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user