(#401) WIP: Added skeleton class for cell mapping

This commit is contained in:
Jacob Støren
2015-09-14 16:32:53 +02:00
parent b6fb85e0a4
commit 57ff5becbc
5 changed files with 100 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ void RivFemElmVisibilityCalculator::computeOverriddenCellVisibility(cvf::UByteAr
elmVisibilities->resize(elmCount);
elmVisibilities->setAll(false);
RigCaseCellMapper* cellMapper = masterViewLink->cellMapper();
RigCaseToCaseCellMapper* cellMapper = masterViewLink->cellMapper();
for (size_t elmIdx = 0; elmIdx < elmCount; ++elmIdx)
{

View File

@@ -618,7 +618,7 @@ void RivReservoirViewPartMgr::computeOverriddenCellVisibility(cvf::UByteArray* c
cellVisibility->resize(gridCellCount);
cellVisibility->setAll(false);
RigCaseCellMapper* cellMapper = masterViewLink->cellMapper();
RigCaseToCaseCellMapper* cellMapper = masterViewLink->cellMapper();
for (size_t lcIdx = 0; lcIdx < gridCellCount; ++lcIdx)
{

View File

@@ -6,10 +6,12 @@ endif()
set (SOURCE_GROUP_HEADER_FILES
${CEE_CURRENT_LIST_DIR}RigGeoMechWellLogExtractor.h
${CEE_CURRENT_LIST_DIR}RigCaseToCaseCellmapper.h
)
set (SOURCE_GROUP_SOURCE_FILES
${CEE_CURRENT_LIST_DIR}RigGeoMechWellLogExtractor.cpp
${CEE_CURRENT_LIST_DIR}RigCaseToCaseCellmapper.cpp
)
list(APPEND CODE_HEADER_FILES

View File

@@ -0,0 +1,41 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions AS
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#include "RigCaseToCaseCellMapper.h"
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigCaseToCaseCellMapper::RigCaseToCaseCellMapper(RigMainGrid* eclipseGrid, RigFemPart* femPart)
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const int * RigCaseToCaseCellMapper::masterCaseCellIndices(int dependentCaseReservoirCellIndex, int* masterCaseCellIndexCount)
{
static int a = 0;
(*masterCaseCellIndexCount) = 1;
return &a;
}

View File

@@ -0,0 +1,55 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions AS
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cvfBase.h"
#include "cvfObject.h"
#include "cvfMath.h"
#include "cvfVector3.h"
#include <vector>
class RigMainGrid;
class RigFemPart;
//==================================================================================================
///
//==================================================================================================
class RigCaseToCaseCellMapper : public cvf::Object
{
public:
RigCaseToCaseCellMapper(RigMainGrid* eclipseGrid, RigFemPart* femPart);
const int * masterCaseCellIndices(int dependentCaseReservoirCellIndex, int* masterCaseCellIndexCount);
private:
#if 0
cvf::Vec3i m_ecToGmOffset;
cvf::Matrix3<int> m_ecToGmAxisTransform;
std::vector<int> m_ecgmCellOrIntervalIndex;
std::vector<std::vector<int> > m_ecgmCellIndexIntervals;
std::vector<int> m_gmecCellOrIntervalIndex;
std::vector<std::vector<int> > m_gmecCellIndexIntervals;
#endif
};