Changeset 5445


Ignore:
Timestamp:
08/20/10 09:38:30 (15 years ago)
Author:
seroussi
Message:

test ismip b pattyn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/NightlyRun/test1103.m

    r5098 r5445  
    11%This test is a test from the ISMP-HOM Intercomparison project
    22%Pattyn and Payne 2006
     3printingflag=true;
    34
    45L_list={5000,10000,20000,40000,80000,160000};
     
    3940        vz=PatchToVec(md.results.DiagnosticSolution.Vz);
    4041        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));
    4145
    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
    4384end
    4485
     86%Now plot the min and max values of vx for each size of the square
     87plot([5 10 20 40 80 160],minvx);ylim([0 14])
     88if 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 ']);
     92end
     93plot([5 10 20 40 80 160],maxvx);ylim([0 120])
     94if 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 ']);
     98end
    4599%Fields and tolerances to track changes
    46100field_names     ={...
     
    51105        'Vx80km','Vy80km','Vz80km',...
    52106        'Vx160km','Vy160km','Vz160km'
    53 }
     107};
    54108field_tolerances={...
    55109        1e-13,1e-13,1e-13,...
Note: See TracChangeset for help on using the changeset viewer.