Changeset 24562


Ignore:
Timestamp:
02/08/20 09:27:49 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: use 'universal' option to check field consistency for Josh's model

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

Legend:

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

    r21600 r24562  
    4141
    4242                        %Check that temperature is provided
    43                         md = checkfield(md,'fieldname','initialization.temperature','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 1]);
     43                        md = checkfield(md,'fieldname','initialization.temperature','NaN',1,'Inf',1,'size','universal');
    4444                end % }}}
    4545                function disp(self) % {{{
  • issm/trunk-jpl/src/m/classes/initialization.m

    r24132 r24562  
    7575                                end
    7676                                md = checkfield(md,'fieldname','initialization.pressure','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 1]);
    77                                 md = checkfield(md,'fieldname','initialization.temperature','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 1]);
     77                                md = checkfield(md,'fieldname','initialization.temperature','NaN',1,'Inf',1,'size','universal');
    7878                        end
    7979                        if (ismember('EnthalpyAnalysis',analyses) & md.thermal.isenthalpy)
    80                                 md = checkfield(md,'fieldname','initialization.waterfraction','>=',0,'size',[md.mesh.numberofvertices 1]);
    81                                 md = checkfield(md,'fieldname','initialization.watercolumn'  ,'>=',0,'size',[md.mesh.numberofvertices 1]);
     80                                md = checkfield(md,'fieldname','initialization.waterfraction','>=',0,'size','universal');
     81                                md = checkfield(md,'fieldname','initialization.watercolumn'  ,'>=',0,'size','universal');
    8282                                pos=find(md.initialization.waterfraction>0.);
    8383                                if(~isempty(pos)),
  • issm/trunk-jpl/src/m/classes/thermal.m

    r24140 r24562  
    9393                                md = checkfield(md,'fieldname','thermal.watercolumn_upperlimit','>=',0);
    9494
    95                                 %Make sure the spc are less than melting point
     95                                %Make sure the spc are less than melting point (Josh commented out the next 2 lines)
    9696                                TEMP=md.thermal.spctemperature(1:md.mesh.numberofvertices,:);
    9797                                replicate=repmat(md.geometry.surface-md.mesh.z,1,size(md.thermal.spctemperature,2));
Note: See TracChangeset for help on using the changeset viewer.