Added retrieval of mean value

Added RigGeoMechCaseData::meanCellScalarValues(). Using this method to
retrieve the mean value for display in the info box. ToDo: Make sure
that the mean values this methods needs have been computed.
This commit is contained in:
Stein Dale
2015-06-03 14:37:51 +02:00
parent 9f87011ddd
commit 189e5dca40
3 changed files with 36 additions and 2 deletions

View File

@@ -38,8 +38,7 @@
#include "RigGeoMechCaseData.h"
#include "RigFemPartCollection.h"
#include "RimGeoMechResultSlot.h"
#include "RigFemResultAddress.h"
CAF_PDM_SOURCE_INIT(Rim3dOverlayInfoConfig, "View3dOverlayInfoConfig");
@@ -330,6 +329,9 @@ void Rim3dOverlayInfoConfig::updateGeoMech3DInfo(RimGeoMechView * geoMechView)
double p10 = 0, p90 = 0;
double mean = 0;
RigFemResultAddress resAddress = geoMechView->cellResult()->resultAddress();
caseData->meanCellScalarValues(resAddress, &mean);
// ToDo: Implement statistics for geomech data
/*RigStatisticsDataCache* statistics = caseData ? caseData->statistics() : NULL;
statistics->minMaxCellScalarValues(min, max);