Last change
on this file since 14769 was 14769, checked in by bdef, 12 years ago |
NEW: split HydrologyDC in 2 sub analyses, and added penalties for the sediment layer
|
File size:
999 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * CreateConstraintsHydrologyDCInefficient.c:
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include "../../../Container/Container.h"
|
---|
6 | #include "../../../modules/modules.h"
|
---|
7 | #include "../../../toolkits/toolkits.h"
|
---|
8 | #include "../../../EnumDefinitions/EnumDefinitions.h"
|
---|
9 | #include "../../../io/io.h"
|
---|
10 | #include "../../../classes/objects/objects.h"
|
---|
11 | #include "../../../shared/shared.h"
|
---|
12 | #include "../ModelProcessorx.h"
|
---|
13 |
|
---|
14 | void CreateConstraintsHydrologyDCInefficient(Constraints** pconstraints, IoModel* iomodel){
|
---|
15 |
|
---|
16 | /*Recover pointer: */
|
---|
17 | int hydrology_model;
|
---|
18 | Constraints* constraints=*pconstraints;
|
---|
19 |
|
---|
20 | /*retrieve some parameters: */
|
---|
21 | iomodel->Constant(&hydrology_model,HydrologyEnum);
|
---|
22 |
|
---|
23 | /*Create constraints if they do not exist yet*/
|
---|
24 | if(!constraints) constraints = new Constraints();
|
---|
25 |
|
---|
26 | if(hydrology_model!=HydrologydcEnum){
|
---|
27 | *pconstraints=constraints;
|
---|
28 | return;
|
---|
29 | }
|
---|
30 |
|
---|
31 | IoModelToConstraintsx(constraints,iomodel,HydrologydcSpcsedimentHeadEnum,HydrologyDCInefficientAnalysisEnum);
|
---|
32 |
|
---|
33 | /*Assign output pointer: */
|
---|
34 | *pconstraints=constraints;
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.