Removed debug output

p4#: 21887
This commit is contained in:
Jacob Støren 2013-06-12 10:52:46 +02:00
parent a9d2baf117
commit 03ad142261
7 changed files with 17 additions and 15 deletions

View File

@ -309,7 +309,7 @@ bool RiaApplication::loadProject(const QString& projectFileName)
if (oilField == NULL) continue;
if (oilField->wellPathCollection == NULL)
{
printf("Create well path collection for oil field %i in loadProject.\n", oilFieldIdx);
//printf("Create well path collection for oil field %i in loadProject.\n", oilFieldIdx);
oilField->wellPathCollection = new RimWellPathCollection();
oilField->wellPathCollection->setProject(m_project);
}
@ -367,7 +367,7 @@ void RiaApplication::addWellPathsToModel(QList<QString> wellPathFilePaths)
if (oilField->wellPathCollection == NULL)
{
printf("Create well path collection.\n");
//printf("Create well path collection.\n");
oilField->wellPathCollection = new RimWellPathCollection();
oilField->wellPathCollection->setProject(m_project);
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(m_project);

View File

@ -235,16 +235,18 @@ void RivWellPathPartMgr::appendStaticGeometryPartsToModel(cvf::ModelBasicList* m
if (m_needsTransformUpdate)
{
printf("G");
//printf("G");
buildWellPathParts(displayModelOffset, characteristicCellSize, boundingBox);
}
else
{
printf("s");
//printf("s");
}
if (m_wellBranches.size() < 1)
printf("RivWellPathPartMgr::appendStaticGeometryPartsToModel: There are no well branches in well \"%s\"!!!\n", (const char*) m_rimWellPath->name().toLocal8Bit());
{
//printf("RivWellPathPartMgr::appendStaticGeometryPartsToModel: There are no well branches in well \"%s\"!!!\n", (const char*) m_rimWellPath->name().toLocal8Bit());
}
std::list<RivPipeBranchData>::iterator it;
for (it = m_wellBranches.begin(); it != m_wellBranches.end(); it++)

View File

@ -43,7 +43,7 @@ public:
void setScaleTransform(cvf::Transform * scaleTransform);
void scheduleGeometryRegen() { m_needsTransformUpdate = true; printf("R"); }
void scheduleGeometryRegen() { m_needsTransformUpdate = true; }//printf("R"); }
void appendStaticGeometryPartsToModel(cvf::ModelBasicList* model, cvf::Vec3d displayModelOffset, double characteristicCellSize, cvf::BoundingBox boundingBox);

View File

@ -223,7 +223,7 @@ void RimProject::initAfterRead()
if (analysisModels)
{
analysisModels->caseGroups.push_back(sourceCaseGroup);
printf("Moved m_project->caseGroupsObsolete[%i] to first oil fields analysis models\n", cgIdx);
//printf("Moved m_project->caseGroupsObsolete[%i] to first oil fields analysis models\n", cgIdx);
movedOneRimIdenticalGridCaseGroup = true; // moved at least one so assume the others will be moved too...
}
}
@ -240,7 +240,7 @@ void RimProject::initAfterRead()
if (analysisModels)
{
analysisModels->cases.push_back(sourceCase);
printf("Moved m_project->casesObsolete[%i] to first oil fields analysis models\n", cIdx);
//printf("Moved m_project->casesObsolete[%i] to first oil fields analysis models\n", cIdx);
movedOneRimCase = true; // moved at least one so assume the others will be moved too...
}
}

View File

@ -652,7 +652,7 @@ void RimReservoirView::createDisplayModel()
//--------------------------------------------------------------------------------------------------
void RimReservoirView::updateCurrentTimeStep()
{
printf("########## updateCurrentTimeStep for frame %i ##########\n", m_currentTimeStep.v());
//printf("########## updateCurrentTimeStep for frame %i ##########\n", m_currentTimeStep.v());
std::vector<RivReservoirViewPartMgr::ReservoirGeometryCacheType> geometriesToRecolor;
if (this->propertyFilterCollection()->hasActiveFilters())
@ -765,7 +765,7 @@ void RimReservoirView::updateCurrentTimeStep()
for (size_t i = 0; i < wellPathModels.size(); i++)
{
printf("updateCurrentTimeStep: Remove WellPathModel %i from frameScene, for frame %i\n", i, m_currentTimeStep.v());
//printf("updateCurrentTimeStep: Remove WellPathModel %i from frameScene, for frame %i\n", i, m_currentTimeStep.v());
frameScene->removeModel(wellPathModels[i]);
}
@ -777,12 +777,12 @@ void RimReservoirView::updateCurrentTimeStep()
RivWellPathCollectionPartMgr* wellPathCollectionPartMgr = (wellPathCollection) ? wellPathCollection->wellPathCollectionPartMgr() : NULL;
if (wellPathCollectionPartMgr)
{
printf("updateCurrentTimeStep: Append well paths for frame %i: ", m_currentTimeStep.v());
//printf("updateCurrentTimeStep: Append well paths for frame %i: ", m_currentTimeStep.v());
cvf::Vec3d displayModelOffset = eclipseCase()->reservoirData()->mainGrid()->displayModelOffset();
double characteristicCellSize = eclipseCase()->reservoirData()->mainGrid()->characteristicIJCellSize();
cvf::BoundingBox boundingBox = currentActiveCellInfo()->geometryBoundingBox();
wellPathCollectionPartMgr->appendStaticGeometryPartsToModel(wellPathModelBasicList.p(), displayModelOffset, m_reservoirGridPartManager->scaleTransform(), characteristicCellSize, boundingBox);
printf("\n");
//printf("\n");
}
wellPathModelBasicList->updateBoundingBoxesRecursive();
frameScene->addModel(wellPathModelBasicList.p());

View File

@ -183,9 +183,9 @@ void RimWellPath::readWellPathFile()
updateDate = updateDateTime.toString("d MMMM yyyy");
updateUser = jsonMap["updateUser"].toString();
printf("Read JSON file: well path name = %s\n filePath = %s\n",
/*printf("Read JSON file: well path name = %s\n filePath = %s\n",
name().toStdString().c_str(),
(const char*) filepath().toLocal8Bit());
(const char*) filepath().toLocal8Bit());*/
double datumElevation = jsonMap["datumElevation"].toDouble();

View File

@ -144,7 +144,7 @@ void RimWellPathCollection::addWellPaths( QStringList filePaths )
QString s2 = f2.fileName();
if (s1 == s2)
{
printf("Attempting to open well path JSON file that is already open:\n %s\n", (const char*) filePath.toLocal8Bit());
//printf("Attempting to open well path JSON file that is already open:\n %s\n", (const char*) filePath.toLocal8Bit());
alreadyOpen = true;
break;
}