From 5d3ffe5b969b615e218056762c7a5f48aed8a8e7 Mon Sep 17 00:00:00 2001 From: yuhang Date: Fri, 15 Jan 2021 15:19:14 +0800 Subject: [PATCH] 增加对未知得水流模型的判断 --- calc_gate.c | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/calc_gate.c b/calc_gate.c index 33c4911..3079fca 100644 --- a/calc_gate.c +++ b/calc_gate.c @@ -457,6 +457,10 @@ int Calculation_of_InstantaneousFlow(double *value,struct param_gate *param) *value = cal_gate_control_with_submerged_flow(param->water_depth_front_of_gate,param->water_depth_behind_of_gate,\ param->openning_height_of_gate,param->gate_width,param->wingwall,param->drop_step); break; + default: + *value=0; + return -1; + break; } return 0; } -- libgit2 0.21.4