[PATCH] centralised definition for surface pressure
Jan Schubert
Jan.Schubert at GMX.li
Mon Jan 14 14:33:55 PST 2013
On 01/14/13 23:15, Jan Schubert wrote:
> static inline double bar_to_atm(double bar)
> {
> - return bar / 1.01325;
> + return bar / SURFACE_PRESSURE;
> }
>
> static inline double to_ATM(pressure_t pressure)
> {
> - return pressure.mbar / 1013.25;
> + return pressure.mbar / SURFACE_PRESSURE * 1000;
> }
Oops, this should be the other way around. Please do not apply, will check.
Sry,
Jan
More information about the subsurface
mailing list