Skip to content

Commit

Permalink
Merge pull request #1082 from CliMA/js/configs
Browse files Browse the repository at this point in the history
remove unused configs; clean up CI pipeline
  • Loading branch information
juliasloan25 authored Nov 13, 2024
2 parents 60136f6 + 1cdfee5 commit fa5f03b
Show file tree
Hide file tree
Showing 24 changed files with 113 additions and 269 deletions.
260 changes: 103 additions & 157 deletions .buildkite/pipeline.yml

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ julia --project=experiments/ClimaEarth experiments/ClimaEarth/run_amip.jl

When running from the terminal, you can also specify a configuration file to use for the simulation setup, and a job ID to keep track of this run's output.
Existing configuration files are specified in the `config/` directory within ClimaCoupler.jl.
For example, to run a coarse AMIP run using Float64, you could use the following command:
For example, to run the default AMIP configuration, you could use the following command:
```julia
julia --project=experiments/ClimaEarth experiments/ClimaEarth/run_amip.jl --config_file config/ci_configs/coarse_single_ft64.jl --job_id coarse_single_ft64
julia --project=experiments/ClimaEarth experiments/ClimaEarth/run_amip.jl --config_file config/ci_configs/amip_default.jl --job_id amip_default
```

Output from your run will be saved in the folder `experiments/ClimaEarth/output/amip/<job_id>/` for AMIP runs, or
Expand All @@ -71,10 +71,10 @@ The output will take up approximately 1GB of space, and the simulation will take
while running the driver interactively, you'll need to
manually set the values for `parsed_args["config_file"]` and `parsed_args["job_id"]`.

>For example, to use the configuration file found at `config/ci_configs/coarse_single_ft64.yml`, you would use add the following lines in the `run_amip` driver:
>For example, to use the configuration file found at `config/ci_configs/amip_default.yml`, you would use add the following lines in the `run_amip` driver:
```
parsed_args["config_file"] = "config/ci_configs/coarse_single_ft64.yml"
parsed_args["job_id"] = "coarse_single_ft64"
parsed_args["config_file"] = "config/ci_configs/amip_default.yml"
parsed_args["job_id"] = "amip_default"
```

### A Note about ClimaComms and MPI
Expand Down Expand Up @@ -146,3 +146,5 @@ module load common

For additional information about these clusters, including how to gain access for the first time,
see our slurm-buildkite wiki pages for [Central](https://github.com/CliMA/slurm-buildkite/wiki/Central) and [clima](https://github.com/CliMA/slurm-buildkite/wiki/clima).

## Buildkite pipelines
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ dt_save_to_sol: "1days"
dz_bottom: 30
dz_top: 3000
h_elem: 4
land_albedo_type: "function"
mode_name: "amip"
moist: "equil"
precip_model: "0M"
Expand Down
File renamed without changes.
14 changes: 0 additions & 14 deletions config/ci_configs/coarse_single_ft64.yml

This file was deleted.

13 changes: 0 additions & 13 deletions config/ci_configs/default_mono.yml

This file was deleted.

13 changes: 0 additions & 13 deletions config/ci_configs/default_notmono.yml

This file was deleted.

14 changes: 0 additions & 14 deletions config/ci_configs/default_unthreaded.yml

This file was deleted.

18 changes: 0 additions & 18 deletions config/ci_configs/gpu_amip_albedo_static_map.yml

This file was deleted.

Empty file.
14 changes: 0 additions & 14 deletions config/ci_configs/slabplanet_albedo_static_map.yml

This file was deleted.

17 changes: 0 additions & 17 deletions config/ci_configs/target_params_in_slab_test3.yml

This file was deleted.

4 changes: 2 additions & 2 deletions experiments/ClimaEarth/run_amip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ parsed_args = parse_commandline(argparse_settings())
## modify parsed args for fast testing from REPL #hide
if isinteractive()
parsed_args["config_file"] =
isnothing(parsed_args["config_file"]) ? joinpath(pkg_dir, "config/ci_configs/coarse_single_ft32.yml") : #interactive_debug.yml") :
isnothing(parsed_args["config_file"]) ? joinpath(pkg_dir, "config/ci_configs/interactive_debug.yml") :
parsed_args["config_file"]
parsed_args["job_id"] = "coarse_single_ft32"#"interactive_debug"
parsed_args["job_id"] = "interactive_debug"
end

## the unique job id should be passed in via the command line
Expand Down
2 changes: 1 addition & 1 deletion test/mpi_tests/local_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module purge
module load climacommon/2024_10_09

export CC_PATH=$(pwd)/ # adjust this to the path of your ClimaCoupler.jl directory
export JOB_ID=coarse_single_ft64_hourly_checkpoints_restart
export JOB_ID=amip_coarse_ft64_hourly_checkpoints_restart
export CONFIG_FILE=${CC_PATH}config/ci_configs/${JOB_ID}.yml
export RESTART_DIR=experiments/ClimaEarth/output/amip/${JOB_ID}/artifacts/

Expand Down

0 comments on commit fa5f03b

Please sign in to comment.