From 47e7c6c837d243d8c174a79e7c26a458887be85f Mon Sep 17 00:00:00 2001 From: NightIsDark <935528249@qq.ocm> Date: Thu, 24 Dec 2020 15:55:44 +0800 Subject: [PATCH] test --- test-hdsmf/test.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test-hdsmf/test.c b/test-hdsmf/test.c index 96b02ed..05db1be 100644 --- a/test-hdsmf/test.c +++ b/test-hdsmf/test.c @@ -4,6 +4,16 @@ #include "calc_gate.h" +//struct param_gate{ +// int wingwall; +// int drop_step; +// double openning_height_of_gate; +// double water_depth_front_of_gate; +// double water_depth_behind_of_gate; +// double gate_width; +//}; + + int main() { @@ -17,14 +27,14 @@ int main() *((int*)param+1)=0; *((double*)param+1)=5.0; *((double*)param+2)=1.2; - *((double*)param+3)=0.1; + *((double*)param+3)=0.2; *((double*)param+4)=1.2; printf("For Test\r\n"); results=Calculation_of_InstantaneousFlow(&temp,param); - + printf("exec:%d,ins:%f\r\n",results,temp); //printf("ins:%f\r\n",Calculation_of_InstantaneousFlow(5,1.2,0.1,1.2,1,0)); free(param); -- libgit2 0.21.4