Metadata-Version: 2.4
Name: icon4py-standalone_driver
Version: 0.2.0
Summary: ICON model driver.
Author-email: ETH Zurich <gridtools@cscs.ch>
License: BSD-3 License
Project-URL: Homepage, https://github.com/C2SM/icon4py
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: icon4py-atmosphere-dycore~=0.2.0
Requires-Dist: icon4py-atmosphere-diffusion~=0.2.0
Requires-Dist: icon4py-common~=0.2.0
Requires-Dist: icon4py-testing~=0.2.0
Requires-Dist: typer>=0.20.0
Requires-Dist: devtools>=0.12
Requires-Dist: gt4py==1.1.10
Requires-Dist: packaging>=20.0

# model driver for Python ICON4Py

`main.py` contains a simple python program to run the experimental ICON python port.

Currently, it does only diffusion and solve_nonhydro (dry atmosphere with no physics). The configuration for the granules and driver is hardcoded in [standalone_driver.py](src/icon4py/model/standalone_driver/standalone_driver.py). Time step, total integration time, number of substeps, and etc. can be configured there.

The code is meant to be changed and enlarged as we port new parts of the model.

It runs single node.

## Installation

See the general instructions in the [README.md](../../README.md) in the base folder of the repository.

## Usage

```bash
# set environment variables (optional but convenient)
export ICON4PY_ROOT=<path to the icon4py clone>
export GRID_FOLDER=<path to the folder holding grids>

# command line arguments:
icon4py-standalone-driver \
    $ICON4PY_ROOT/configuration_path/ \
    --grid-file-path $GRID_FOLDER/icon_grid_0013_R02B04_R.nc \
    --output-path $ICON4PY_ROOT/output_path \
    --icon4py-backend gtfn_cpu
```

#### Remarks
