mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Octave Interface: Current Case is now interpreted correctly by Resinsight
The method returning the current case had not been updated to do so. Some debug output is also removed.
This commit is contained in:
@@ -161,7 +161,13 @@ void RiaSocketServer::handleClientConnection(QTcpSocket* clientToHandle)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimCase* RiaSocketServer::findReservoir(int caseId)
|
||||
{
|
||||
int currCaseId = caseId;
|
||||
if (caseId < 0)
|
||||
{
|
||||
currCaseId = this->currentCaseId();
|
||||
}
|
||||
|
||||
if (currCaseId < 0)
|
||||
{
|
||||
if (RiaApplication::instance()->activeReservoirView())
|
||||
{
|
||||
@@ -223,8 +229,6 @@ void RiaSocketServer::readCommandFromOctave()
|
||||
|
||||
CVF_ASSERT(args.size() > 0);
|
||||
|
||||
std::cout << args[0].data() << std::endl;
|
||||
|
||||
m_currentCommand = RiaSocketCommandFactory::instance()->create(args[0]);
|
||||
|
||||
if (m_currentCommand)
|
||||
|
||||
@@ -177,10 +177,7 @@ DEFUN_DLD (riGetActiveCellInfo, args, nargout,
|
||||
{
|
||||
porosityModel = args(1).char_matrix_value().row_as_string(0).c_str();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
octave_stdout << "Porosity: " << porosityModel.toStdString() << " CaseId : " << caseId << std::endl;
|
||||
}
|
||||
|
||||
getActiveCellInfo(propertyFrames, "127.0.0.1", 40001, caseId, porosityModel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user