Commit 5d3ffe5b969b615e218056762c7a5f48aed8a8e7

Authored by yuhang
1 parent 967b4044

增加对未知得水流模型的判断

Showing 1 changed file with 4 additions and 0 deletions
calc_gate.c
@@ -457,6 +457,10 @@ int Calculation_of_InstantaneousFlow(double *value,struct param_gate *param) @@ -457,6 +457,10 @@ int Calculation_of_InstantaneousFlow(double *value,struct param_gate *param)
457 *value = cal_gate_control_with_submerged_flow(param->water_depth_front_of_gate,param->water_depth_behind_of_gate,\ 457 *value = cal_gate_control_with_submerged_flow(param->water_depth_front_of_gate,param->water_depth_behind_of_gate,\
458 param->openning_height_of_gate,param->gate_width,param->wingwall,param->drop_step); 458 param->openning_height_of_gate,param->gate_width,param->wingwall,param->drop_step);
459 break; 459 break;
  460 + default:
  461 + *value=0;
  462 + return -1;
  463 + break;
460 } 464 }
461 return 0; 465 return 0;
462 } 466 }