Commit afdf9cf963b3fa2e30c4fa095f2904e458fc1e24

Authored by NightIsDark
1 parent 701e6abd

添加CMakeLists.c

.gitignore
1   -CMakeLists.txt
  1 +
2 2  
3 3  
... ...
CMakeLists.txt
... ... @@ -5,5 +5,5 @@ endforeach()
5 5 aux_source_directory(. DIR_SRCS)
6 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 80 */
81 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 84 return -1;
85 85 }
86 86 if(!(param->drop_step == 0 || param->drop_step == 1)){
... ...
test-hdsmf/CMakeLists.txt 0 → 100644
  1 +
  2 +add_executable("test-hdsmf" "test-hdsmf.c" )
  3 +
  4 +target_link_libraries("test-hdsmf" Stage-Discharge-Relation)
  5 +
  6 +
  7 +find_package("Threads")
  8 +target_link_libraries("test-hdsmf" ${CMAKE_THREAD_LIBS_INIT})
0 9 \ No newline at end of file
... ...