Changeset 5445
- Timestamp:
- 08/20/10 09:38:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/test/NightlyRun/test1103.m
r5098 r5445 1 1 %This test is a test from the ISMP-HOM Intercomparison project 2 2 %Pattyn and Payne 2006 3 printingflag=true; 3 4 4 5 L_list={5000,10000,20000,40000,80000,160000}; … … 39 40 vz=PatchToVec(md.results.DiagnosticSolution.Vz); 40 41 results{i}=md.results.DiagnosticSolution; 42 results{i}=md.results.DiagnosticSolution; 43 minvx(i)=min(vx(end-md.numberofgrids2d+1:end)); 44 maxvx(i)=max(vx(end-md.numberofgrids2d+1:end)); 41 45 42 plotmodel(md,'data',vx,'data',vy,'data',vz,'layer#all',md.numlayers) 46 %Now plot vx, vy, vz and vx on a cross section 47 plotmodel(md,'data',vx,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km') 48 if printingflag, 49 set(gcf,'Color','w') 50 printmodel(['ismipbpattynvx' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 51 system(['mv ismipbpattynvx' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestB ']); 52 end 53 plotmodel(md,'data',vz,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km') 54 if printingflag, 55 set(gcf,'Color','w') 56 printmodel(['ismipbpattynvz' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 57 system(['mv ismipbpattynvz' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestB ']); 58 end 59 60 if(L==5000), 61 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP5000.exp','layer',md.numlayers,... 62 'resolution',[10 10],'ylim',[6 16],'xlim',[0 5000],'title','','xlabel','') 63 elseif(L==10000), 64 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP10000.exp','layer',md.numlayers,... 65 'resolution',[10 10],'ylim',[0 40],'xlim',[0 10000],'title','','xlabel','') 66 elseif(L==20000), 67 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP20000.exp','layer',md.numlayers,... 68 'resolution',[10 10],'ylim',[0 60],'xlim',[0 20000],'title','','xlabel','') 69 elseif(L==40000), 70 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP40000.exp','layer',md.numlayers,... 71 'resolution',[10 10],'ylim',[0 100],'xlim',[0 40000],'title','','xlabel','') 72 elseif(L==80000), 73 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP80000.exp','layer',md.numlayers,... 74 'resolution',[10 10],'ylim',[0 120],'xlim',[0 80000],'title','','xlabel','') 75 elseif(L==160000), 76 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP160000.exp','layer',md.numlayers,... 77 'resolution',[10 10],'ylim',[0 120],'xlim',[0 160000],'title','','xlabel','') 78 end 79 if printingflag, 80 set(gcf,'Color','w') 81 printmodel(['ismipbpattynvxsec' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 82 system(['mv ismipbpattynvxsec' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestB ']); 83 end 43 84 end 44 85 86 %Now plot the min and max values of vx for each size of the square 87 plot([5 10 20 40 80 160],minvx);ylim([0 14]) 88 if printingflag, 89 set(gcf,'Color','w') 90 printmodel('ismipbpattynminvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 91 system(['mv ismipbpattynminvx.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestB ']); 92 end 93 plot([5 10 20 40 80 160],maxvx);ylim([0 120]) 94 if printingflag, 95 set(gcf,'Color','w') 96 printmodel('ismipbpattynmaxvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 97 system(['mv ismipbpattynmaxvx.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestB ']); 98 end 45 99 %Fields and tolerances to track changes 46 100 field_names ={... … … 51 105 'Vx80km','Vy80km','Vz80km',... 52 106 'Vx160km','Vy160km','Vz160km' 53 } 107 }; 54 108 field_tolerances={... 55 109 1e-13,1e-13,1e-13,...
Note:
See TracChangeset
for help on using the changeset viewer.