Changeset 21661


Ignore:
Timestamp:
04/05/17 10:04:51 (8 years ago)
Author:
seroussi
Message:

FIX: upperwater elevation can be equal to 0 (surface)

Location:
issm/trunk-jpl/src/m/classes
Files:
2 edited

Legend:

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

    r21418 r21661  
    5555                                md = checkfield(md,'fieldname','basalforcings.deepwater_melting_rate','>=',0,'numel',1);
    5656                                md = checkfield(md,'fieldname','basalforcings.deepwater_elevation','<','basalforcings.upperwater_elevation','numel',1);
    57                                 md = checkfield(md,'fieldname','basalforcings.upperwater_elevation','<',0,'numel',1);
     57                                md = checkfield(md,'fieldname','basalforcings.upperwater_elevation','<=',0,'numel',1);
    5858                        end
    5959                        if ismember('ThermalAnalysis',analyses) & ~(strcmp(solution,'TransientSolution') & md.transient.isthermal==0),
  • issm/trunk-jpl/src/m/classes/linearbasalforcings.py

    r21303 r21661  
    8383                        md = checkfield(md,'fieldname','basalforcings.deepwater_melting_rate','>=',0);
    8484                        md = checkfield(md,'fieldname','basalforcings.deepwater_elevation','<',md.basalforcings.upperwater_elevation);
    85                         md = checkfield(md,'fieldname','basalforcings.upperwater_elevation','<',0);
     85                        md = checkfield(md,'fieldname','basalforcings.upperwater_elevation','<=',0);
    8686                        md = checkfield(md,'fieldname','basalforcings.geothermalflux','NaN',1,'Inf',1,'timeseries',1,'>=',0)
    8787
Note: See TracChangeset for help on using the changeset viewer.