Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisRenchon committed Aug 5, 2024
1 parent 53a4eeb commit 930ac12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/diagnostics/define_diagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function define_diagnostics!(land_model)
)

# Rainfall
add_diagnostic_variable!(
add_diagnostic_variable!(
short_name = "rain",
long_name = "Rainfall",
standard_name = "rainfall",
Expand Down Expand Up @@ -420,7 +420,7 @@ function define_diagnostics!(land_model)
land_model,
),
)

# TNIR - transmitted near infrared radiation
add_diagnostic_variable!(
short_name = "tnir",
Expand Down
3 changes: 1 addition & 2 deletions src/diagnostics/diagnostic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ function get_diagnostic_variable(short_name)
end

# Do you want to define more diagnostics? Add them here
include("bucket_compute_methods.jl")
include("soilcanopy_compute_methods.jl")
include("land_compute_methods.jl")

# define_diagnostics.jl contains the list of all the diagnostics
include("define_diagnostics.jl")
Expand Down
5 changes: 3 additions & 2 deletions src/diagnostics/land_compute_methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ end
@land_compute "infiltration" SoilCanopyModel p.soil.infiltration
@land_compute "soil_hydraulic_conductivity" SoilCanopyModel p.soil.K
@land_compute "soil_thermal_conductivity" SoilCanopyModel p.soil.κ
@land_compute "soil_water_liquid" SoilCanopyModel top_center_to_surface(p.soil.θ_l)
@land_compute "soil_water_liquid" SoilCanopyModel top_center_to_surface(
p.soil.θ_l,
)
@land_compute "soil_water_potential" SoilCanopyModel p.soil.ψ
@land_compute "soil_net_radiation" SoilCanopyModel p.soil.R_n
@land_compute "soil_temperature" SoilCanopyModel p.soil.T
Expand All @@ -141,4 +143,3 @@ end
@land_compute "canopy_temperature" SoilCanopyModel Y.canopy.energy.T
@land_compute "soil_ice" SoilCanopyModel top_center_to_surface(Y.soil.θ_i)
@land_compute "soilco2" SoilCanopyModel Y.soilco2.C

0 comments on commit 930ac12

Please sign in to comment.