Changeset 14760


Ignore:
Timestamp:
04/25/13 14:52:37 (12 years ago)
Author:
bdef
Message:

CHG: Test on the existence of the second layer beforeinitialisation of the epl water head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/initialization.m

    r14757 r14760  
    6060                                if isa(md.hydrology,'hydrologydc'),
    6161                                        md = checkfield(md,'initialization.sediment_head','NaN',1,'size',[md.mesh.numberofvertices 1]);
    62                                         md = checkfield(md,'initialization.epl_head','NaN',1,'size',[md.mesh.numberofvertices 1]);
     62                                        if md.hydrology.isefficientlayer==1,
     63                                                md = checkfield(md,'initialization.epl_head','NaN',1,'size',[md.mesh.numberofvertices 1]);
     64                      end
    6365                                else
    6466                                        md = checkfield(md,'initialization.watercolumn','NaN',1,'size',[md.mesh.numberofvertices 1]);
Note: See TracChangeset for help on using the changeset viewer.