Skip to content

Commit

Permalink
Fix Server test
Browse files Browse the repository at this point in the history
  • Loading branch information
verseve committed Nov 12, 2024
1 parent 6173667 commit 97dbad1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/test/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
"vertical.soil.parameters.nlayers",
"vertical.soil.parameters.theta_r",
"lateral.river.variables.q",
"lateral.river.boundary_conditions.reservoir.outflow",
"lateral.river.boundary_conditions.reservoir.variables.outflow",
]
retrieved_vars = request((fn = "get_input_var_names",))["input_var_names"]
@test all(x -> x in retrieved_vars, to_check)
Expand Down
10 changes: 6 additions & 4 deletions server/test/sbm_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ h = "h_river"
h_av = "h_av_river"
q = "q_river"

[state.lateral.river.boundary_conditions.reservoir]
[state.lateral.river.boundary_conditions.reservoir.variables]
volume = "volume_reservoir"

[state.lateral.subsurface.variables]
Expand Down Expand Up @@ -165,7 +165,7 @@ snow_water = "snowwater"
h = "h_river"
q = "q_river"

[output.lateral.river.boundary_conditions.reservoir]
[output.lateral.river.boundary_conditions.reservoir.variables]
volume = "volume_reservoir"

[output.lateral.subsurface.variables]
Expand Down Expand Up @@ -208,7 +208,7 @@ reducer = "maximum"
[[csv.column]]
header = "volume"
index = 1
parameter = "lateral.river.boundary_conditions.reservoir.volume"
parameter = "lateral.river.boundary_conditions.reservoir.variables.volume"

[[csv.column]]
coordinate.x = 6.255
Expand Down Expand Up @@ -267,5 +267,7 @@ components = [
"lateral.river.parameters",
"lateral.river.parameters.flow",
"lateral.river.boundary_conditions",
"lateral.river.boundary_conditions.reservoir",
"lateral.river.boundary_conditions.reservoir.boundary_conditions",
"lateral.river.boundary_conditions.reservoir.parameters",
"lateral.river.boundary_conditions.reservoir.variables",
]

0 comments on commit 97dbad1

Please sign in to comment.