Attention
This project is still in an early phase of development.
The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.
Configuration#
Environment Variables#
User-settable environment variables#
The following environment variables can be set by the user to control C-Star behavior.
Frequent users may want to set preferred values for these variables in their .bash_profile or .zshrc files.
Tip
Use CSTAR_FF_CLI_ENV_SHOW=1 cstar env show --display export to generate a starter script.
Uncategorized Configuration#
Variable |
Default |
Effect |
|---|---|---|
|
unknown |
unknown |
Simulation Configuration#
Variable |
Default |
Effect |
|---|---|---|
|
0 |
Set to 1 to short-circuit CLI operations after planning steps are completed |
|
0 |
Set to 1 to produce verbose CLI outputs. |
|
0 |
Set to 1 to automatically clear the working directory specified in a blueprint before launching a SLURM job. Use at your own risk. |
|
0 |
Set to 1 to automatically clear codebase directories and create fresh clones during each run. Otherwise, use code found in locations specified in ROMS_ROOT and ROMS_MARBL. |
|
(no default) |
Override behavior for launching new jobs via SLURM or simply executing via mpirun. Only set this to 0 if you need to launch new jobs from within an existing allocation. |
|
INFO |
Specify the logging level for terminal messages. Options: DEBUG, INFO, WARNING, ERROR, CRITICAL. |
|
<generated> |
Specify the number of processes to be used for post-processing simulation output files. Dynamic default |
|
<generated> |
Unique run identifier used by the orchestrator. |
|
1.0 |
Delay (in seconds) after a submission to ensure status for a SLURM job can be queried. |
File System Configuration#
Variable |
Default |
Effect |
|---|---|---|
|
~/.cache or <generated> |
Environment variable used to override the home directory for C-Star file cache. |
|
~/.config or <generated> |
Environment variable used to override the home directory for C-Star config storage. |
|
~/.local/share or <generated> |
Environment variable used to override the home directory for C-Star dataset storage. |
|
SCRATCH,SCRATCH_DIR,LOCAL_SCRATCH |
A comma-separated list of environment variable names used to identify scratch paths on HPC systems, in search order. |
|
~/.local/state or <generated> |
Environment variable used to override the home directory for C-Star state storage. |
Orchestration#
Variable |
Default |
Effect |
|---|---|---|
|
0.1, 1, 2, 5, 15, 30, 60 |
Configurable delay for the orchestrator (seconds). |
|
Monthly |
Time span for time-splitting transforms (e.g. Monthly, Yearly). |
|
(no default) |
Account ID to be used by the SLURM scheduler. |
|
48:00:00 |
Maximum walltime allowed by the SLURM scheduler. |
|
(no default) |
SLURM priority (queue) used by the SLURM scheduler. |
Developer Only#
Variable |
Default |
Effect |
|---|---|---|
|
(no default) |
Overridden mapping key to apply when converting applications into CLI commands. |
Feature Flags#
Variable |
Default |
Effect |
|---|---|---|
|
0 |
Enable automatic blueprint migration to the latest schema during execution. |
|
0 |
Enable CLI for migrating blueprints to the latest schema. |
|
0 |
Enable CLI for displaying environment configuration. |
|
0 |
Enable CLI for creating blueprints and workplans from standard templates. |
|
0 |
Enable CLI for composing a workplan from pre-existing blueprints. |
|
0 |
Enable CLI for generating a workplan from a directory of blueprints. |
|
0 |
Enable CLI for generating the execution plan of a workplan. |
|
0 |
Enable CLI for retrieving status about a workplan run. |
|
0 |
Enable developer mode to enable all feature flags (not recommended). |
|
0 |
Enable automatic time-splitting of simulations. |
|
0 |
Enable long name generation during time-splitting. |