-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UW-501 / UW-502 FV3 graph-based driver implementation (#408)
- Loading branch information
1 parent
0e75475
commit 666880f
Showing
49 changed files
with
2,385 additions
and
2,402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
``uwtools.api.fv3`` | ||
======================== | ||
|
||
.. automodule:: uwtools.api.fv3 | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ API | |
|
||
.. toctree:: | ||
config | ||
forecast | ||
fv3 | ||
logging | ||
rocoto | ||
template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ CLI | |
:maxdepth: 1 | ||
|
||
mode_config | ||
mode_forecast | ||
mode_fv3 | ||
mode_rocoto | ||
mode_template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
Mode ``fv3`` | ||
============ | ||
|
||
The ``uw`` mode for configuring and running FV3. | ||
|
||
.. code-block:: text | ||
$ uw fv3 --help | ||
usage: uw fv3 [-h] TASK ... | ||
Execute FV3 tasks | ||
Optional arguments: | ||
-h, --help | ||
Show help and exit | ||
Positional arguments: | ||
TASK | ||
boundary_files | ||
The FV3 lateral boundary-condition files | ||
diag_table | ||
The FV3 diag_table file | ||
field_table | ||
The FV3 field_table file | ||
files_copied | ||
Files copied for FV3 run | ||
files_linked | ||
Files linked for FV3 run | ||
model_configure | ||
The FV3 model_configure file | ||
namelist_file | ||
The FV3 namelist file | ||
provisioned_run_directory | ||
The run directory provisioned with all required content | ||
restart_directory | ||
The FV3 RESTART directory | ||
run | ||
FV3 run execution | ||
runscript | ||
A runscript suitable for submission to the scheduler | ||
All tasks take the same arguments. For example: | ||
|
||
.. code-block:: text | ||
$ uw fv3 run --help | ||
usage: uw fv3 run --config-file PATH --cycle CYCLE [-h] [--batch] [--dry-run] [--debug] [--quiet] | ||
[--verbose] | ||
FV3 run execution | ||
Required arguments: | ||
--config-file PATH, -c PATH | ||
Path to config file | ||
--cycle CYCLE | ||
The cycle in ISO8601 format | ||
Optional arguments: | ||
-h, --help | ||
Show help and exit | ||
--batch | ||
Submit run to batch scheduler | ||
--dry-run | ||
Only log info, making no changes | ||
--debug | ||
Print all log messages, plus any unhandled exception's stack trace (implies --verbose) | ||
--quiet, -q | ||
Print no logging messages | ||
--verbose, -v | ||
Print all logging messages | ||
Examples | ||
^^^^^^^^ | ||
|
||
The examples use a configuration file named ``config.yaml``. Its contents are described in depth in section :ref:`fv3_yaml`. | ||
|
||
* Run FV3 on an interactive node | ||
|
||
.. code-block:: text | ||
$ uw fv3 run --config-file config.yaml --cycle 2024-02-11T12 | ||
The driver creates a ``runscript`` file in the directory specified by ``run_dir`` in the config and runs it, executing FV3. | ||
|
||
* Run FV3 via a batch job | ||
|
||
.. code-block:: text | ||
$ uw fv3 run --config-file config.yaml --cycle 2024-02-11T12 --batch | ||
The driver creates a ``runscript`` file in the directory specified by ``run_dir`` in the config and submits it to the batch system. Running with ``--batch`` requires a correctly configured ``platform`` block in ``config,yaml``, as well as appropriate settings in the ``execution`` block under ``fv3``. | ||
|
||
* Specifying the ``--dry-run`` flag results in the driver logging messages about actions it would have taken, without actually taking any. | ||
|
||
.. code-block:: text | ||
$ uw fv3 run --config-file config.yaml --cycle 2024-02-11T12 --batch --dry-run | ||
* The ``run`` task depends on the other available tasks and executes them as prerequisites. It is possible to execute any task directly, which entails execution of any of *its* dependencies. For example, to create an FV3 run directory provisioned with all the files, directories, symlinks, etc. required per the configuration file: | ||
|
||
.. code-block: text | ||
$ uw fv3 provisioned_run_directory --config-file config.yaml --cycle 2024-02-11T12 --batch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.