-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0aae724
commit aea6be5
Showing
6 changed files
with
163 additions
and
5 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import CLIMAParameters as CP | ||
using Test | ||
|
||
override_file = joinpath("toml", "tags.toml") | ||
toml_dict = CP.create_toml_dict(Float32; dict_type = "name", override_file) | ||
|
||
beljaars_param_names = sort([ | ||
"coefficient_a_m_beljaars", | ||
"coefficient_b_h_beljaars", | ||
"coefficient_c_h_beljaars", | ||
"coefficient_c_m_beljaars", | ||
"coefficient_d_h_beljaars", | ||
"most_stability_parameter_beljaars", | ||
"coefficient_d_m_beljaars", | ||
"coefficient_b_m_beljaars", | ||
"prandtl_number_0_beljaars", | ||
"coefficient_a_h_beljaars", | ||
"most_stability_exponent_beljaars", | ||
]) | ||
|
||
beljaars_params = sort(CP.get_parameter_values(toml_dict, beljaars_param_names)) | ||
|
||
@testset "Tags" begin | ||
|
||
@test beljaars_params == | ||
sort(CP.get_tagged_parameter_values(toml_dict, ["bel jaa*rs"])) | ||
|
||
@test beljaars_param_names == | ||
sort(CP.get_tagged_parameter_names(toml_dict, ["bel jaa*rs"])) | ||
|
||
end |
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,77 @@ | ||
# Used in test_tags.jl | ||
[prandtl_number_0_beljaars] | ||
alias = "Pr_0_Beljaars" | ||
value = 1.0 | ||
type = "float" | ||
description = "Pr_0 for Beljaars universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_a_m_beljaars] | ||
alias = "a_m_Beljaars" | ||
value = 1.0 | ||
type = "float" | ||
description = "a_m for Beljaars momentum universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_a_h_beljaars] | ||
alias = "a_h_Beljaars" | ||
value = 1.0 | ||
type = "float" | ||
description = "a_h for Beljaars heat universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_b_m_beljaars] | ||
alias = "b_m_Beljaars" | ||
value = 0.667 | ||
type = "float" | ||
description = "b_m for Beljaars momentum universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_b_h_beljaars] | ||
alias = "b_h_Beljaars" | ||
value = 0.667 | ||
type = "float" | ||
description = "b_h for Beljaars heat universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_c_m_beljaars] | ||
alias = "c_m_Beljaars" | ||
value = 5.0 | ||
type = "float" | ||
description = "c_m for Beljaars momentum universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_c_h_beljaars] | ||
alias = "c_h_Beljaars" | ||
value = 5.0 | ||
type = "float" | ||
description = "c_h for Beljaars heat universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_d_m_beljaars] | ||
alias = "d_m_Beljaars" | ||
value = 0.35 | ||
type = "float" | ||
description = "d_m for Beljaars momentum universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[coefficient_d_h_beljaars] | ||
alias = "d_h_Beljaars" | ||
value = 0.35 | ||
type = "float" | ||
description = "d_h for Beljaars heat universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[most_stability_parameter_beljaars] | ||
alias = "ζ_a_Beljaars" | ||
value = 3.4 | ||
type = "float" | ||
description = "ζ_a for Beljaars universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] | ||
|
||
[most_stability_exponent_beljaars] | ||
alias = "γ_Beljaars" | ||
value = 2.04 | ||
type = "float" | ||
description = "γ for Beljaars universal functions. From Beljaars et al, 1991. DOI: 10.1175/1520-0450(1991)030<0327:FPOLSF>2.0.CO;2" | ||
tag = ["Beljaars"] |