From aeb00529e0586ef28df766957b9a96397854700e Mon Sep 17 00:00:00 2001 From: Roman Cattaneo <1116746+romanc@users.noreply.github.com> Date: Fri, 9 May 2025 13:52:11 +0200 Subject: [PATCH] Avoid deprecated floating_point_precision() With PR https://github.com/NOAA-GFDL/NDSL/pull/104/ that function was deprecated in favor of `get_precision()`. The new fuction is a drop-in replacement for the old one. --- pyFV3/wrappers/geos_wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyFV3/wrappers/geos_wrapper.py b/pyFV3/wrappers/geos_wrapper.py index 98feb79c..3fbe01ce 100644 --- a/pyFV3/wrappers/geos_wrapper.py +++ b/pyFV3/wrappers/geos_wrapper.py @@ -29,7 +29,7 @@ from ndsl.comm.comm_abc import Comm from ndsl.dsl.dace.build import set_distributed_caches from ndsl.dsl.gt4py_utils import is_gpu_backend -from ndsl.dsl.typing import floating_point_precision +from ndsl.dsl.typing import get_precision from ndsl.grid import DampingCoefficients, GridData, MetricTerms from ndsl.logging import ndsl_log from ndsl.optional_imports import cupy as cp @@ -217,7 +217,7 @@ def __init__( f" dt : {self.dycore_state.bdt}\n" f" bridge : {self._fortran_mem_space} > {self._pace_mem_space}\n" f" backend : {backend}\n" - f" float : {floating_point_precision()}bit" + f" float : {get_precision()}bit" f" orchestration : {self._is_orchestrated}\n" f" sizer : {sizer.nx}x{sizer.ny}x{sizer.nz}" f"(halo: {sizer.n_halo})\n"