Files
ResInsight/ApplicationLibCode
Kristian Bendiksen aa444144a5 Improve segment subdivision logic and add comprehensive tests
Changed segment count calculation from trunc() to ceil() in
createSubSegmentMDPairs for more intuitive behavior. When a distance
divides evenly by maxSegmentLength, ceil() correctly calculates the
exact number of segments needed, while trunc() + 1 would create an
unnecessary extra segment.

Example: For 100 units with maxSegmentLength=50:
- Old: trunc(100/50) + 1 = 3 segments of 33.33 units each
- New: ceil(100/50) = 2 segments of 50 units each

Also added 20 comprehensive unit tests for createSubSegmentMDPairs.
2025-12-23 12:17:24 +01:00
..
2025-12-12 07:36:02 +01:00
2025-10-31 13:21:19 +01:00
2025-11-19 10:25:32 +01:00
2024-07-01 14:09:56 +02:00