diff --git a/ApplicationCode/SocketInterface/RiaSocketServer.cpp b/ApplicationCode/SocketInterface/RiaSocketServer.cpp index 1cbc4b31b4..99f52850ef 100644 --- a/ApplicationCode/SocketInterface/RiaSocketServer.cpp +++ b/ApplicationCode/SocketInterface/RiaSocketServer.cpp @@ -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) diff --git a/OctavePlugin/riGetActiveCellInfo.cpp b/OctavePlugin/riGetActiveCellInfo.cpp index dbf278ef23..9c8e57a927 100644 --- a/OctavePlugin/riGetActiveCellInfo.cpp +++ b/OctavePlugin/riGetActiveCellInfo.cpp @@ -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);