mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#536 Well Path : Default pipe thickness in GeoMech views is now closer to thickness in Eclipse views
This commit is contained in:
parent
a1e1443bf0
commit
4886a0835c
@ -287,16 +287,13 @@ float RigFemPart::characteristicElementSize()
|
||||
{
|
||||
if (m_characteristicElementSize != std::numeric_limits<float>::infinity()) return m_characteristicElementSize;
|
||||
|
||||
// take 100 elements
|
||||
float elmIdxJump = elementCount() / 100.0f;
|
||||
int elmIdxIncrement = elmIdxJump < 1 ? 1: (int) elmIdxJump;
|
||||
int elmsToAverageCount = 0;
|
||||
float sumMaxEdgeLength = 0;
|
||||
for (int elmIdx = 0; elmIdx < elementCount(); elmIdx += elmIdxIncrement)
|
||||
for (int elmIdx = 0; elmIdx < elementCount(); elmIdx++)
|
||||
{
|
||||
RigElementType eType = this->elementType(elmIdx);
|
||||
|
||||
if (eType == HEX8 || eType == HEX8P)
|
||||
if (eType == HEX8P)
|
||||
{
|
||||
const int* elmentConn = this->connectivities(elmIdx);
|
||||
cvf::Vec3f nodePos0 = this->nodes().coordinates[elmentConn[0]];
|
||||
|
Loading…
Reference in New Issue
Block a user