Last change
on this file since 14996 was 14996, checked in by Eric.Larour, 12 years ago |
CHG: integrated Container/ directory into src/c/classes/objects directory. No reason to have the containers
and the objects that they contain defined in different places.
|
File size:
979 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * CreateConstraintsHydrologyDCInefficient.c:
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include "../../../toolkits/toolkits.h"
|
---|
6 | #include "../../../shared/Enum/Enum.h"
|
---|
7 | #include "../../../shared/io/io.h"
|
---|
8 | #include "../../../classes/objects/objects.h"
|
---|
9 | #include "../../../shared/shared.h"
|
---|
10 | #include "../ModelProcessorx.h"
|
---|
11 | #include "../../IoModelToConstraintsx/IoModelToConstraintsx.h"
|
---|
12 |
|
---|
13 | void CreateConstraintsHydrologyDCInefficient(Constraints** pconstraints, IoModel* iomodel){
|
---|
14 |
|
---|
15 | /*Recover pointer: */
|
---|
16 | int hydrology_model;
|
---|
17 | Constraints* constraints=*pconstraints;
|
---|
18 |
|
---|
19 | /*retrieve some parameters: */
|
---|
20 | iomodel->Constant(&hydrology_model,HydrologyModelEnum);
|
---|
21 |
|
---|
22 | /*Create constraints if they do not exist yet*/
|
---|
23 | if(!constraints) constraints = new Constraints();
|
---|
24 |
|
---|
25 | if(hydrology_model!=HydrologydcEnum){
|
---|
26 | *pconstraints=constraints;
|
---|
27 | return;
|
---|
28 | }
|
---|
29 |
|
---|
30 | IoModelToConstraintsx(constraints,iomodel,HydrologydcSpcsedimentHeadEnum,HydrologyDCInefficientAnalysisEnum);
|
---|
31 |
|
---|
32 | /*Assign output pointer: */
|
---|
33 | *pconstraints=constraints;
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.