Changeset 1758


Ignore:
Timestamp:
08/18/09 15:35:46 (15 years ago)
Author:
Mathieu Morlighem
Message:

some fixing while renaming

Location:
issm/trunk/src/m/classes/public
Files:
1 added
1 deleted
7 edited

Legend:

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

    r1755 r1758  
    6262
    6363%make sure icefronts that are completely spc'd are taken out:
    64 free_segments=find(sum(md.spcvelocity(md.segmentonneumann_diag(:,1:2),1:2),2)~=2);
     64free_segments=find(sum(md.spcvelocity(md.pressureload(:,1:2),1:2),2)~=2);
    6565md.pressureload=md.pressureload(free_segments,:);
  • issm/trunk/src/m/classes/public/BasinConstrain2.m

    r1755 r1758  
    6363
    6464%make sure icefronts that are completely spc'd are taken out:
    65 free_segments=find(sum(md.spcvelocity(md.segmentonneumann_diag(:,1:2),1:2),2)~=2);
     65free_segments=find(sum(md.spcvelocity(md.pressureload(:,1:2),1:2),2)~=2);
    6666md.pressureload=md.pressureload(free_segments,:);
  • issm/trunk/src/m/classes/public/BasinConstrainShelf.m

    r1755 r1758  
    7676
    7777%make sure icefronts that are completely spc'd are taken out:
    78 free_segments=find(sum(md.spcvelocity(md.segmentonneumann_diag(:,1:2),1:2),2)~=2);
     78free_segments=find(sum(md.spcvelocity(md.pressureload(:,1:2),1:2),2)~=2);
    7979md.pressureload=md.pressureload(free_segments,:);
  • issm/trunk/src/m/classes/public/display/displayprognostic.m

    r1755 r1758  
    1818disp(sprintf('\n      boundary conditions:'));
    1919fielddisplay(md,'spcthickness','constraints flag list (first column) and values (second column)');
    20 fielddisplay(md,'segmentonneumann_prog','segments on ice front list');
    21 fielddisplay(md,'neumannvalues_prog','values of the Neumann [m/a]');
  • issm/trunk/src/m/classes/public/geography2.m

    r1267 r1758  
    148148md.elementonicesheet=elementonicesheet;
    149149
    150 md.segmentonneumann_diag=segments;
     150md.pressureload=segments;
    151151md.counter=2;
    152152md.segmentmarkers(:)=1;
  • issm/trunk/src/m/classes/public/modelzoom.m

    r1 r1758  
    3232elementlist=find( (xel>xlim0(1)) & (xel<xlim0(2)) & (yel>ylim0(1)) & (yel<ylim0(2)) );
    3333
    34 %Create a list of elements locations from the input model, which are on the segmentonneumann_diag:
    35 if(~isempty(md.segmentonneumann_diag)),
    36         xelneumann=(md.x(md.elements(md.segmentonneumann_diag(:,3),1))+md.x(md.elements(md.segmentonneumann_diag(:,3),2))+md.x(md.elements(md.segmentonneumann_diag(:,3),3)))/3;
    37         yelneumann=(md.y(md.elements(md.segmentonneumann_diag(:,3),1))+md.y(md.elements(md.segmentonneumann_diag(:,3),2))+md.y(md.elements(md.segmentonneumann_diag(:,3),3)))/3;
    38         %Figure out which elements are within the area, and on segmentonneumann_diag:
     34%Create a list of elements locations from the input model, which are on the pressureload:
     35if(~isempty(md.pressureload)),
     36        xelneumann=(md.x(md.elements(md.pressureload(:,3),1))+md.x(md.elements(md.pressureload(:,3),2))+md.x(md.elements(md.pressureload(:,3),3)))/3;
     37        yelneumann=(md.y(md.elements(md.pressureload(:,3),1))+md.y(md.elements(md.pressureload(:,3),2))+md.y(md.elements(md.pressureload(:,3),3)))/3;
     38        %Figure out which elements are within the area, and on pressureload:
    3939        elementlistneumann=find( (xelneumann>xlim0(1)) & (xelneumann<xlim0(2)) & (yelneumann>ylim0(1)) & (yelneumann<ylim0(2)) );
    4040end
     
    9595end
    9696
    97 %Deal with segmentonneumann_diag:
    98 if(~isempty(md.segmentonneumann_diag)),
    99         md2.segmentonneumann_diag=md.segmentonneumann_diag(elementlistneumann,:);
    100         md2.segmentonneumann_diag(:,1)=gridpos(md2.segmentonneumann_diag(:,1));
    101         md2.segmentonneumann_diag(:,2)=gridpos(md2.segmentonneumann_diag(:,2));
    102         md2.segmentonneumann_diag(:,3)=elempos(md2.segmentonneumann_diag(:,3));
     97%Deal with pressureload:
     98if(~isempty(md.pressureload)),
     99        md2.pressureload=md.pressureload(elementlistneumann,:);
     100        md2.pressureload(:,1)=gridpos(md2.pressureload(:,1));
     101        md2.pressureload(:,2)=gridpos(md2.pressureload(:,2));
     102        md2.pressureload(:,3)=elempos(md2.pressureload(:,3));
    103103end
    104104
  • issm/trunk/src/m/classes/public/plot/plot_manager.m

    r1745 r1758  
    7272                        plot_sarpwr(md,options_structure,width,i)
    7373                        return
    74                 case {'segmentonneumann_diag','segmentonneumann_prog'}
    75                         plot_segmentonneumann(md,options_structure,width,i,data)
     74                case 'pressureload'
     75                        plot_pressureload(md,options_structure,width,i,data)
    7676                        return
    7777                case 'segments'
Note: See TracChangeset for help on using the changeset viewer.