Commit f48b4c76f14ffdfd21da6933c3d5ad8a381c397d
1 parent
e15ffb12
add ignore
Showing
6 changed files
with
17 additions
and
8 deletions
.gitignore
0 → 100644
CMakeLists.txt
0 → 100644
cal_gate.c
| ... | ... | @@ -471,14 +471,14 @@ double Calculation_of_InstantaneousFlow(double openning_height_of_gate, double w |
| 471 | 471 | |
| 472 | 472 | |
| 473 | 473 | //double openning_height_of_gate, double water_depth_front_of_gate,double water_depth_behind_of_gate,double gate_width,int wingwall,int drop_step |
| 474 | -double Calculation_of_InstantaneousFlow(struct param_gate *param) | |
| 474 | +int Calculation_of_InstantaneousFlow(double *value,struct param_gate *param) | |
| 475 | 475 | { |
| 476 | 476 | patterns_of_water get_pattern; |
| 477 | 477 | |
| 478 | 478 | double temp; |
| 479 | 479 | |
| 480 | 480 | if(data_validity_check(param)!=0) |
| 481 | - return 0; | |
| 481 | + return -1; | |
| 482 | 482 | |
| 483 | 483 | get_pattern = discrimination_of_flow_pattern(param->openning_height_of_gate,param->water_depth_front_of_gate,param->water_depth_behind_of_gate,param->drop_step); |
| 484 | 484 | switch(get_pattern){ |
| ... | ... | @@ -511,7 +511,8 @@ double Calculation_of_InstantaneousFlow(struct param_gate *param) |
| 511 | 511 | param->openning_height_of_gate,param->gate_width,param->wingwall,param->drop_step); |
| 512 | 512 | break; |
| 513 | 513 | } |
| 514 | - return temp; | |
| 514 | + *value = temp; | |
| 515 | + return 0; | |
| 515 | 516 | } |
| 516 | 517 | |
| 517 | 518 | ... | ... |
cal_gate.h
| ... | ... | @@ -12,10 +12,6 @@ struct param_gate{ |
| 12 | 12 | double gate_width; |
| 13 | 13 | }; |
| 14 | 14 | |
| 15 | - | |
| 16 | -//double Calculation_of_InstantaneousFlow(double openning_height_of_gate, double water_depth_front_of_gate,double water_depth_behind_of_gate,double gate_width,int wingwall,int drop_step); | |
| 17 | -double Calculation_of_InstantaneousFlow(struct param_gate *param); | |
| 18 | - | |
| 19 | - | |
| 15 | +int Calculation_of_InstantaneousFlow(double * value,struct param_gate *param); | |
| 20 | 16 | |
| 21 | 17 | #endif | ... | ... |
test deleted
No preview for this file type
test.c renamed to test-hdsmf/test.c