Files
ResInsight/ApplicationLibCode/Commands
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-05-09 15:54:28 +02:00
2025-04-19 08:26:02 +02:00
2024-11-07 09:36:24 +01:00
2024-09-16 09:49:22 +02:00