[Patches] Planner preferences and deco stops at 10ft increments

Dirk Hohndel dirk at hohndel.org
Sat Jul 4 06:42:54 PDT 2015


On Sat, Jul 04, 2015 at 11:25:39PM +1000, Rick Walsh wrote:
> 
> [PATCH 15/15] Planner deco stops are at 10ft increments when measured
>  in feet
> 
> When using feet as depth unit, deco stop levels should be at 10 ft rather
> than 3 m increments.  For shallow stops, rounding means the difference is
> not apparent.  However, with stops deeper than 30 feet, using 3 m
> increments leads stops at 39ft, 49ft, ..., 98ft, etc.
> 
> Apart from making plans look messy, the old behaviour makes it harder to
> benchmark the planner against published profiles in imperial units.

We have macros to make this easier: M_OR_FT(3, 10) gives you the correct
value for 3m if the user has things set up for meters and 10ft if the user
is in imperial mode. This may not work for the "simply copy the table"
approach that you have taken, but I figure I'd point this out in case it
could be useful elsewhere.

/D


More information about the subsurface mailing list