From 6af87145ab09506e767c1b2fbdf63715cc015345 Mon Sep 17 00:00:00 2001 From: Lars Hoffmann Date: Wed, 18 Dec 2024 20:37:44 +0100 Subject: [PATCH] Added warnings regarding use of DP2DZ and DZ2DP macros. --- src/mptrac.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mptrac.h b/src/mptrac.h index 5d55521c4..f8b54bb49 100644 --- a/src/mptrac.h +++ b/src/mptrac.h @@ -494,6 +494,8 @@ * @param p Reference pressure in hPa. * @return Change in height (altitude) in kilometers corresponding to the given pressure difference. * + * @warning Don't use this for large values of dp! + * * @author Lars Hoffmann */ #define DP2DZ(dp, p) \ @@ -551,6 +553,8 @@ * @param p Current pressure in hPa. * @return Change in pressure in hPa. * + * @warning Don't use this for large values of dz! + * * @author Lars Hoffmann */ #define DZ2DP(dz, p) \