mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed clashing MACRO names
This commit is contained in:
parent
9116fed415
commit
f9b7e3c6f7
@ -20,6 +20,8 @@
|
||||
|
||||
PARAMS_2(_t,_rh);
|
||||
|
||||
if (_rh == 0) exitWith { CELSIUS(0) };
|
||||
|
||||
// Source: https://en.wikipedia.org/wiki/Dew_point
|
||||
|
||||
private ["_gamma"];
|
||||
|
@ -28,7 +28,7 @@ PARAMS_2(_t,_rh);
|
||||
|
||||
// Source: https://en.wikipedia.org/wiki/Heat_index
|
||||
|
||||
_t = FAHRENHEIT(_t);
|
||||
_t = TO_FAHRENHEIT(_t);
|
||||
_rh = _rh * 100; // relative humidity in %
|
||||
|
||||
CELSIUS(__C1 + __C2 * _t + __C3 * _rh + __C4 * _t * _rh + __C5 * _t^2 + __C6 * _rh^2 + __C7 * _t^2 * _rh + __C8 * _t * _rh^2)
|
||||
TO_CELSIUS(__C1 + __C2 * _t + __C3 * _rh + __C4 * _t * _rh + __C5 * _t^2 + __C6 * _rh^2 + __C7 * _t^2 * _rh + __C8 * _t * _rh^2)
|
||||
|
@ -18,5 +18,5 @@
|
||||
#define WATER_VAPOR_MOLAR_MASS 0.018016
|
||||
#define DRY_AIR_MOLAR_MASS 0.028964
|
||||
#define SPECIFIC_GAS_CONSTANT_DRY_AIR 287.058
|
||||
#define CELSIUS(t) ((t - 32) / 1.8)
|
||||
#define FAHRENHEIT(t) (t * 1.8 + 32)
|
||||
#define TO_CELSIUS(t) ((t - 32) / 1.8)
|
||||
#define TO_FAHRENHEIT(t) (t * 1.8 + 32)
|
||||
|
Loading…
Reference in New Issue
Block a user