diff --git a/.gitignore b/.gitignore index e5b80f0..b28b04f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -CMakeLists.txt + diff --git a/CMakeLists.txt b/CMakeLists.txt index 9acc0fc..180c387 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,5 +5,5 @@ endforeach() aux_source_directory(. DIR_SRCS) add_library(Stage-Discharge-Relation ${CMAKE_LIB_TYPE} ${DIR_SRCS}) -#add_subdirectory("test-hdsmf") +add_subdirectory("test-hdsmf") diff --git a/calc_gate.c b/calc_gate.c index f410d4a..22d7488 100644 --- a/calc_gate.c +++ b/calc_gate.c @@ -80,7 +80,7 @@ const coefficient_infor coefficient={ */ int data_validity_check(struct param_gate *param) { - if(param->wingwall >=warped_wingwall || param->wingwall<=parallel_wingwall){ + if(param->wingwall < warped_wingwall || param->wingwall>parallel_wingwall){ return -1; } if(!(param->drop_step == 0 || param->drop_step == 1)){ diff --git a/test-hdsmf/CMakeLists.txt b/test-hdsmf/CMakeLists.txt new file mode 100644 index 0000000..80a34e1 --- /dev/null +++ b/test-hdsmf/CMakeLists.txt @@ -0,0 +1,8 @@ + +add_executable("test-hdsmf" "test-hdsmf.c" ) + +target_link_libraries("test-hdsmf" Stage-Discharge-Relation) + + +find_package("Threads") +target_link_libraries("test-hdsmf" ${CMAKE_THREAD_LIBS_INIT}) \ No newline at end of file