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