Commit 47e7c6c837d243d8c174a79e7c26a458887be85f
1 parent
c38ca8ee
test
Showing
1 changed file
with
12 additions
and
2 deletions
test-hdsmf/test.c
| @@ -4,6 +4,16 @@ | @@ -4,6 +4,16 @@ | ||
| 4 | #include "calc_gate.h" | 4 | #include "calc_gate.h" |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | +//struct param_gate{ | ||
| 8 | +// int wingwall; | ||
| 9 | +// int drop_step; | ||
| 10 | +// double openning_height_of_gate; | ||
| 11 | +// double water_depth_front_of_gate; | ||
| 12 | +// double water_depth_behind_of_gate; | ||
| 13 | +// double gate_width; | ||
| 14 | +//}; | ||
| 15 | + | ||
| 16 | + | ||
| 7 | 17 | ||
| 8 | int main() | 18 | int main() |
| 9 | { | 19 | { |
| @@ -17,14 +27,14 @@ int main() | @@ -17,14 +27,14 @@ int main() | ||
| 17 | *((int*)param+1)=0; | 27 | *((int*)param+1)=0; |
| 18 | *((double*)param+1)=5.0; | 28 | *((double*)param+1)=5.0; |
| 19 | *((double*)param+2)=1.2; | 29 | *((double*)param+2)=1.2; |
| 20 | - *((double*)param+3)=0.1; | 30 | + *((double*)param+3)=0.2; |
| 21 | *((double*)param+4)=1.2; | 31 | *((double*)param+4)=1.2; |
| 22 | 32 | ||
| 23 | 33 | ||
| 24 | 34 | ||
| 25 | printf("For Test\r\n"); | 35 | printf("For Test\r\n"); |
| 26 | results=Calculation_of_InstantaneousFlow(&temp,param); | 36 | results=Calculation_of_InstantaneousFlow(&temp,param); |
| 27 | - | 37 | + |
| 28 | printf("exec:%d,ins:%f\r\n",results,temp); | 38 | printf("exec:%d,ins:%f\r\n",results,temp); |
| 29 | //printf("ins:%f\r\n",Calculation_of_InstantaneousFlow(5,1.2,0.1,1.2,1,0)); | 39 | //printf("ins:%f\r\n",Calculation_of_InstantaneousFlow(5,1.2,0.1,1.2,1,0)); |
| 30 | free(param); | 40 | free(param); |