Skip to content

Commit

Permalink
Added warnings regarding use of DP2DZ and DZ2DP macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
lars2015 committed Dec 18, 2024
1 parent 825daef commit 6af8714
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mptrac.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down Expand Up @@ -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) \
Expand Down

0 comments on commit 6af8714

Please sign in to comment.