Changeset 14755


Ignore:
Timestamp:
04/25/13 10:35:12 (12 years ago)
Author:
bdef
Message:

BUG:testing if the second layer exist before fixing its SPC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/Hydrology/CreateConstraintsHydrology.cpp

    r14573 r14755  
    1616        /*Recover pointer: */
    1717        int          hydrology_model;
     18        bool         isefficientlayer;
    1819        Constraints* constraints=*pconstraints;
    1920
     
    2829        }
    2930        else if(hydrology_model==HydrologydcEnum){
     31                iomodel->Constant(&isefficientlayer,HydrologydcIsefficientlayerEnum);
    3032                IoModelToConstraintsx(constraints,iomodel,HydrologydcSpcsedimentHeadEnum,HydrologyAnalysisEnum);
     33               
     34                if(isefficientlayer){
     35                        IoModelToConstraintsx(constraints,iomodel,HydrologydcSpceplHeadEnum,HydrologyAnalysisEnum);
     36                }
    3137        }
    3238        else{
Note: See TracChangeset for help on using the changeset viewer.