Changeset 2274


Ignore:
Timestamp:
09/23/09 09:38:35 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed model extract for Greenland (bad pressureload)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/modelextract.m

    r2093 r2274  
    233233                        md2.pressureload(:,4)=Pgrid(md1.pressureload(:,4));
    234234                end
    235                 md2.pressureload=md2.pressureload(find(md2.pressureload(:,1) & md2.pressureload(:,2)),:);
     235                md2.pressureload=md2.pressureload(find(md2.pressureload(:,1) & md2.pressureload(:,2) & md2.pressureload(:,end)),:);
    236236        end
    237237        if ~isnan(md2.pressureload_stokes)
     
    243243                        md2.pressureload_stokes(:,4)=Pgrid(md1.pressureload_stokes(:,4));
    244244                end
    245                 md2.pressureload_stokes=md2.pressureload_stokes(find(md2.pressureload_stokes(:,1) & md2.pressureload_stokes(:,2)),:);
     245                md2.pressureload_stokes=md2.pressureload_stokes(find(md2.pressureload_stokes(:,1) & md2.pressureload_stokes(:,2) &  md2.pressureload_stokes(:,end)),:);
    246246        end
    247247
Note: See TracChangeset for help on using the changeset viewer.