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 committed 2014-08-06 16:54:12 +02:00
1 parent d3ac12f826
commit 160a2a2fdf
1 file changed
+4 -1
@@ -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;
}