Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Oct 11, 2023
1 parent 77c79e7 commit b052c48
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
12 changes: 10 additions & 2 deletions src/diagnostics/core_diagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ add_diagnostic_variable!(
long_name = "Mass Fraction of Cloud Liquid Water",
standard_name = "mass_fraction_of_cloud_liquid_water_in_air",
units = "kg kg^-1",
comments = "Includes both large-scale and convective cloud. This is calculated as the mass of cloud liquid water in the grid cell divided by the mass of air (including the water in all phases) in the grid cells. ",
comments = """
Includes both large-scale and convective cloud.
This is calculated as the mass of cloud liquid water in the grid cell divided by
the mass of air (including the water in all phases) in the grid cells.
""",
compute! = compute_clw!,
)

Expand Down Expand Up @@ -334,7 +338,11 @@ add_diagnostic_variable!(
long_name = "Mass Fraction of Cloud Ice",
standard_name = "mass_fraction_of_cloud_ice_in_air",
units = "kg kg^-1",
comments = "Includes both large-scale and convective cloud. This is calculated as the mass of cloud ice in the grid cell divided by the mass of air (including the water in all phases) in the grid cell.",
comments = """
Includes both large-scale and convective cloud.
This is calculated as the mass of cloud ice in the grid cell divided by
the mass of air (including the water in all phases) in the grid cell.
""",
compute! = compute_cli!,
)

Expand Down
20 changes: 16 additions & 4 deletions src/diagnostics/edmfx_diagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ add_diagnostic_variable!(
short_name = "clwup",
long_name = "Updraft Mass Fraction of Cloud Liquid Water",
units = "kg kg^-1",
comments = "This is calculated as the mass of cloud liquid water in the first updraft divided by the mass of air (including the water in all phases) in the first updraft.",
comments = """
This is calculated as the mass of cloud liquid water in the first updraft divided by
the mass of air (including the water in all phases) in the first updraft.
""",
compute! = compute_clwup!,
)

Expand Down Expand Up @@ -384,7 +387,10 @@ add_diagnostic_variable!(
short_name = "cliup",
long_name = "Updraft Mass Fraction of Cloud Ice",
units = "kg kg^-1",
comments = "This is calculated as the mass of cloud ice in the first updraft divided by the mass of air (including the water in all phases) in the first updraft.",
comments = """
This is calculated as the mass of cloud ice in the first updraft divided by
the mass of air (including the water in all phases) in the first updraft.
""",
compute! = compute_cliup!,
)

Expand Down Expand Up @@ -696,7 +702,10 @@ add_diagnostic_variable!(
short_name = "clwen",
long_name = "Envrionment Mass Fraction of Cloud Liquid Water",
units = "kg kg^-1",
comments = "This is calculated as the mass of cloud liquid water in the environment divided by the mass of air (including the water in all phases) in the environment.",
comments = """
This is calculated as the mass of cloud liquid water in the environment divided by
the mass of air (including the water in all phases) in the environment.
""",
compute! = compute_clwen!,
)

Expand Down Expand Up @@ -742,7 +751,10 @@ add_diagnostic_variable!(
short_name = "clien",
long_name = "Environment Mass Fraction of Cloud Ice",
units = "kg kg^-1",
comments = "This is calculated as the mass of cloud ice in the environment divided by the mass of air (including the water in all phases) in the environment.",
comments = """
This is calculated as the mass of cloud ice in the environment divided by
the mass of air (including the water in all phases) in the environment.
""",
compute! = compute_clien!,
)

Expand Down

0 comments on commit b052c48

Please sign in to comment.