2023-10-23 16:04:48 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2023 Equinor ASA
|
|
|
|
|
//
|
|
|
|
|
// 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 "RimFaultReactivationDataAccessor.h"
|
|
|
|
|
|
2023-12-08 16:00:20 +01:00
|
|
|
#include "RigFaultReactivationModel.h"
|
2023-10-23 16:04:48 +02:00
|
|
|
#include "RigMainGrid.h"
|
|
|
|
|
|
|
|
|
|
#include "cafAssert.h"
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
RimFaultReactivationDataAccessor::RimFaultReactivationDataAccessor()
|
|
|
|
|
{
|
|
|
|
|
m_timeStep = -1;
|
2023-12-08 16:00:20 +01:00
|
|
|
m_model = nullptr;
|
2023-10-23 16:04:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
RimFaultReactivationDataAccessor::~RimFaultReactivationDataAccessor()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2023-12-08 16:00:20 +01:00
|
|
|
void RimFaultReactivationDataAccessor::setModelAndTimeStep( const RigFaultReactivationModel& model, size_t timeStep )
|
2023-10-23 16:04:48 +02:00
|
|
|
{
|
2023-12-08 16:00:20 +01:00
|
|
|
m_model = &model;
|
2023-10-23 16:04:48 +02:00
|
|
|
m_timeStep = timeStep;
|
|
|
|
|
updateResultAccessor();
|
|
|
|
|
}
|