Do not use deprecated Octave functions

b5ad0b9170
p4#: 21106
This commit is contained in:
Magne Sjaastad 2013-04-03 09:24:33 +02:00
parent e49895ea65
commit 70347c281f
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ void getActiveCellInfo(int32NDArray& activeCellInfo, const QString &hostName, qu
activeCellCount = byteCount / sizeof(qint32); activeCellCount = byteCount / sizeof(qint32);
dim_vector dv (2); dim_vector dv (2, 1);
dv(0) = activeCellCount; dv(0) = activeCellCount;
dv(1) = timestepCount; dv(1) = timestepCount;
activeCellInfo.resize(dv); activeCellInfo.resize(dv);

View File

@ -51,7 +51,7 @@ void getMainGridDimensions(int32NDArray& gridDimensions, const QString &hostName
socketStream >> jCount; socketStream >> jCount;
socketStream >> kCount; socketStream >> kCount;
dim_vector dv (1); dim_vector dv (1, 1);
dv(0) = 3; dv(0) = 3;
gridDimensions.resize(dv); gridDimensions.resize(dv);