#1035 Connected the Flow Diag solver, and added the statistics needed for legend. Now many things work .

This commit is contained in:
Jacob Støren
2016-12-20 11:41:05 +01:00
parent 3c55a86650
commit 003271ff54
15 changed files with 962 additions and 23 deletions

View File

@@ -29,13 +29,6 @@
class RimEclipseResultCase;
class RimFlowDiagSolution;
struct RigTracerCells
{
std::string tracerName;
std::vector<int> tracerCellActiveIndices;
};
class RigFlowDiagTimeStepResult
{
@@ -54,21 +47,25 @@ private:
void addResult(const RigFlowDiagResultAddress& resAddr, const std::map<int, double>& cellValues);
std::map<RigFlowDiagResultAddress, std::vector<double> > m_nativeResults;
size_t m_activeCellCount;
};
class RigCaseData;
class RigFlowDiagSolverInterface : public cvf::Object
{
public:
RigFlowDiagSolverInterface(RimFlowDiagSolution* flowSol);
RigFlowDiagSolverInterface(RimEclipseResultCase * eclipseCase);
virtual ~RigFlowDiagSolverInterface();
RigFlowDiagTimeStepResult calculate(size_t timestep);
RigFlowDiagTimeStepResult calculate(size_t timestep,
std::map<std::string, std::vector<int> > injectorTracers,
std::map<std::string, std::vector<int> > producerTracers);
private:
caf::PdmPointer<RimFlowDiagSolution> m_flowDiagSolution;
RimEclipseResultCase * m_eclipseCase;
};