From afbd64da54ed92e7d7934ec72c13b328cfd3cd88 Mon Sep 17 00:00:00 2001 From: Roman Cattaneo <1116746+romanc@users.noreply.github.com> Date: Fri, 12 Sep 2025 16:30:24 +0200 Subject: [PATCH] refactor: use new versions of environment variables The old ones are currently deprecated and expected to be removed in the future (after a grace period). See https://github.com/NOAA-GFDL/NDSL/pull/193 for more details. --- README.md | 6 +++--- doc_primer_orchestration.md | 2 +- docs/overview.rst | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index abb2e9e7..8d74b1d7 100644 --- a/README.md +++ b/README.md @@ -109,12 +109,12 @@ After the run completes, you will see an output directory `output.zarr`. An exam ### Environment variable configuration -- `PACE_CONSTANTS`: Pace is bundled with various constants. +- `NDSL_CONSTANTS`: Pace is bundled with various constants. - `GFDL` NOAA's FV3 dynamical core constants (original port) - `GFS` Constant as defined in NOAA GFS - `GEOS` Constant as defined in GEOS v13 -- `PACE_FLOAT_PRECISION`: default precision of the field & scalars in the numerics. Default to 64. -- `PACE_LOGLEVEL`: logging level to display (DEBUG, INFO, WARNING, ERROR, CRITICAL). Default to INFO. +- `NDSL_LITERAL_PRECISION`: default precision of the field & scalars in the numerics. Default to 64. +- `NDSL_LOGLEVEL`: logging level to display (DEBUG, INFO, WARNING, ERROR, CRITICAL). Default to INFO. ## Quickstart - Docker diff --git a/doc_primer_orchestration.md b/doc_primer_orchestration.md index f669155e..e98f25e3 100644 --- a/doc_primer_orchestration.md +++ b/doc_primer_orchestration.md @@ -45,7 +45,7 @@ DaCe has many configuration options. When executing, it drops or reads a `dace.c `ndsl.dsl.dace.dace_config` carries a set of tested options for DaCe, with doc. It also takes care of removing the `dace.conf` that will be generated automatically when using DaCe. -Orchestration can be debugged by using the env var `PACE_DACE_DEBUG`. +Orchestration can be debugged by using the env var `NDSL_DACE_DEBUG`. When set to `True`, this will drop a few checks: - `sdfg_nan_checker`, which drops a NaN check after _every_ computation on field _written_, diff --git a/docs/overview.rst b/docs/overview.rst index c3a6c554..52e21bb0 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -11,4 +11,4 @@ A few environment variable change the behavior of the model: - Build: will build the program then exit. This _build no matter what_. (backend must be `dace:gpu` or `dace:cpu`) - BuildAndRun: same as above but after build the program will keep executing (backend must be `dace:gpu` or `dace:cpu`) - Run: load pre-compiled program and execute, fail if the .so is not present (_no hashs check!_) (backend must be `dace:gpu` or `dace:cpu`) -- PACE_FLOAT_PRECISION=64 control the floating point precision throughout the program. +- NDSL_LITERAL_PRECISION=64 control the floating point precision throughout the program.