Added comments and asserts related to neg. faces

Negative face results is not applicable for this result access object,
as they are never used (by intention)
This commit is contained in:
Jacob Støren 2014-08-06 16:54:12 +02:00 committed by Magne Sjaastad
parent aff8d8fd2a
commit e31d3c8807

View File

@ -34,10 +34,13 @@ RigCombTransResultAccessObject::RigCombTransResultAccessObject(const RigGridBase
}
//--------------------------------------------------------------------------------------------------
///
/// Only sensible to provide the positive values, as the negative ones will never be used.
/// The negative faces gets their value from the neighbor cell in that direction
//--------------------------------------------------------------------------------------------------
void RigCombTransResultAccessObject::setDataAccessObjectForFace(cvf::StructGridInterface::FaceType faceId, RigResultAccessObject* resultAccessObject)
{
CVF_ASSERT(faceId == cvf::StructGridInterface::POS_I || faceId == cvf::StructGridInterface::POS_J || faceId == cvf::StructGridInterface::POS_K );
m_resultAccessObjects[faceId] = resultAccessObject;
}