Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
395: Use ClimaAtmos new config file interface r=LenkaNovak a=valeriabarra ## Purpose This PR updates ClimaAtmos to v0.16.0 and its new interface for configuration files (rather than CLI options), and keeps the existing functionality for the Coupler to still use CLI options. This new interface reduces the maintenance burden and code duplication that we used to have (we used to manually copy/paste ClimaAtmos' default CLI options). Now, if any default in ClimaAtmos will change in the future, the Coupler won't need to overwrite them. They will be reflected directly in the Coupler. Closes #388 ## To-do - [x] Update all buildkite regular and longrun pipeline jobs - [x] Complete tests in interactive mode - [x] Test & Debug ## Content - [x] Updated to latest ClimaAtmos release (v0.16.0) - [x] Got rid of ClimaAtmos parsed_args table (keeping the only one entry that exists now, `--config_file`) - [x] Renamed `"AMIP - modular, Float32 test"` -> `"AMIP - modular, Float64 test"`, since we were using Float64 in that test - [x] Cleaned up `flame.jl` and `flame_diff.jl` scripts (they were referring to an old `job_id` `target_amip_n32_shortrun` that we don't use anymore) ## Remap and MPI trouble shooting (issues that came up after cluster upgrade) - [x] mpi hdf5 circ dependency circular dependencies throwing wrong library errors - need to use the JuliaProject.toml and specify `JULIA_LOAD_PATH` (soon to be resolved with the TempestRemap new release, but for now we need to load packages in a specific order) - [x] bus errors, race conditions when writing new regrid files - tests exhibit different behaviour with different modules (solution above) - apply barriers were needed - [x] overloaded ApplyOfflineMap remapping - apply the correct `const comms_ctx = ClimaComms.context(ClimaComms.CPUSingleThreaded())` - [x] coupler AMIP race conditions - ensure regrid directory contains the run-specific `run_name` - [x] tempest remap file error - TR has a character limit, so the regrid directory path shouldn't be too long. Review checklist I have: - followed the codebase contribution guide: https://clima.github.io/ClimateMachine.jl/latest/Contributing/ - followed the style guide: https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/ - followed the documentation policy: https://github.com/CliMA/policies/wiki/Documentation-Policy - checked that this PR does not duplicate an open PR. In the Content, I have included - relevant unit tests, and integration tests, - appropriate docstrings on all functions, structs, and modules, and included relevant documentation. --> ---- - [x] I have read and checked the items on the review checklist. Co-authored-by: Valeria Barra <[email protected]>
- Loading branch information