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);