mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05: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:
1 parent
d065c8e1e0
commit
3f3ced5af0
4 files changed
+22
-5
No files matched your search
@@ -71,7 +71,11 @@ void setEclipseProperty(const NDArray& propertyFrames, const QString &hostName,
|
||||
socketStream << (qint64)(timeStepCount);
|
||||
socketStream << (qint64)singleTimeStepByteCount;
|
||||
|
||||
const double* internalData = propertyFrames.fortran_vec();
|
||||
#if OCTAVE_MAJOR_VERSION > 6
|
||||
auto internalData = propertyFrames.data();
|
||||
#else
|
||||
auto internalData = propertyFrames.fortran_vec();
|
||||
#endif
|
||||
|
||||
QStringList errorMessages;
|
||||
if (!RiaSocketDataTransfer::writeBlockDataToSocket(&socket, (const char *)internalData, timeStepCount*singleTimeStepByteCount, errorMessages))
|
||||
|
||||
Reference in new issue
Block a user