Commit afdf9cf963b3fa2e30c4fa095f2904e458fc1e24
1 parent
701e6abd
添加CMakeLists.c
Showing
4 changed files
with
11 additions
and
3 deletions
CMakeLists.txt
| @@ -5,5 +5,5 @@ endforeach() | @@ -5,5 +5,5 @@ endforeach() | ||
| 5 | aux_source_directory(. DIR_SRCS) | 5 | aux_source_directory(. DIR_SRCS) |
| 6 | add_library(Stage-Discharge-Relation ${CMAKE_LIB_TYPE} ${DIR_SRCS}) | 6 | add_library(Stage-Discharge-Relation ${CMAKE_LIB_TYPE} ${DIR_SRCS}) |
| 7 | 7 | ||
| 8 | -#add_subdirectory("test-hdsmf") | 8 | +add_subdirectory("test-hdsmf") |
| 9 | 9 |
calc_gate.c
| @@ -80,7 +80,7 @@ const coefficient_infor coefficient={ | @@ -80,7 +80,7 @@ const coefficient_infor coefficient={ | ||
| 80 | */ | 80 | */ |
| 81 | int data_validity_check(struct param_gate *param) | 81 | int data_validity_check(struct param_gate *param) |
| 82 | { | 82 | { |
| 83 | - if(param->wingwall >=warped_wingwall || param->wingwall<=parallel_wingwall){ | 83 | + if(param->wingwall < warped_wingwall || param->wingwall>parallel_wingwall){ |
| 84 | return -1; | 84 | return -1; |
| 85 | } | 85 | } |
| 86 | if(!(param->drop_step == 0 || param->drop_step == 1)){ | 86 | if(!(param->drop_step == 0 || param->drop_step == 1)){ |
test-hdsmf/CMakeLists.txt
0 → 100644