Skip to content

Commit dc41c82

Browse files
committed
Expose ClimaParams strict option.
1 parent ee1c274 commit dc41c82

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/default_configs/default_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ subsidence:
289289
toml:
290290
help: "TOML file(s) used to override model parameters"
291291
value: []
292+
strict_params:
293+
help: "Raise an error if any overridden parameters are unused."
294+
value: true
292295
prognostic_tke:
293296
help: "A flag for prognostic TKE [`false` (default), `true`]"
294297
value: false

src/solver/type_getters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ function get_simulation(config::AtmosConfig)
780780
CP.log_parameter_information(
781781
config.toml_dict,
782782
joinpath(output_dir, "$(job_id)_parameters.toml"),
783-
strict = true,
783+
strict = config.parsed_args["strict_params"],
784784
)
785785
YAML.write_file(joinpath(output_dir, "$job_id.yml"), config.parsed_args)
786786

0 commit comments

Comments
 (0)