Changeset 1758
- Timestamp:
- 08/18/09 15:35:46 (15 years ago)
- 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 62 62 63 63 %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);64 free_segments=find(sum(md.spcvelocity(md.pressureload(:,1:2),1:2),2)~=2); 65 65 md.pressureload=md.pressureload(free_segments,:); -
issm/trunk/src/m/classes/public/BasinConstrain2.m
r1755 r1758 63 63 64 64 %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);65 free_segments=find(sum(md.spcvelocity(md.pressureload(:,1:2),1:2),2)~=2); 66 66 md.pressureload=md.pressureload(free_segments,:); -
issm/trunk/src/m/classes/public/BasinConstrainShelf.m
r1755 r1758 76 76 77 77 %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);78 free_segments=find(sum(md.spcvelocity(md.pressureload(:,1:2),1:2),2)~=2); 79 79 md.pressureload=md.pressureload(free_segments,:); -
issm/trunk/src/m/classes/public/display/displayprognostic.m
r1755 r1758 18 18 disp(sprintf('\n boundary conditions:')); 19 19 fielddisplay(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 148 148 md.elementonicesheet=elementonicesheet; 149 149 150 md. segmentonneumann_diag=segments;150 md.pressureload=segments; 151 151 md.counter=2; 152 152 md.segmentmarkers(:)=1; -
issm/trunk/src/m/classes/public/modelzoom.m
r1 r1758 32 32 elementlist=find( (xel>xlim0(1)) & (xel<xlim0(2)) & (yel>ylim0(1)) & (yel<ylim0(2)) ); 33 33 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: 35 if(~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: 39 39 elementlistneumann=find( (xelneumann>xlim0(1)) & (xelneumann<xlim0(2)) & (yelneumann>ylim0(1)) & (yelneumann<ylim0(2)) ); 40 40 end … … 95 95 end 96 96 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: 98 if(~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)); 103 103 end 104 104 -
issm/trunk/src/m/classes/public/plot/plot_manager.m
r1745 r1758 72 72 plot_sarpwr(md,options_structure,width,i) 73 73 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) 76 76 return 77 77 case 'segments'
Note:
See TracChangeset
for help on using the changeset viewer.