Changeset 5606


Ignore:
Timestamp:
08/27/10 08:42:22 (15 years ago)
Author:
seroussi
Message:

do not print the images in validation

Location:
issm/trunk/test/NightlyRun
Files:
16 edited

Legend:

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

    r5540 r5606  
    11%This test is a test from the ISMP-HOM Intercomparison project
    22%Pattyn and Payne 2006
    3 printingflag=true;
     3printingflag=false;
    44
    55L_list={5000,10000,20000,40000,80000,160000};
  • issm/trunk/test/NightlyRun/test1102.m

    r5098 r5606  
    11%This test is a test from the ISMP-HOM Intercomparison project
    22%Pattyn and Payne 2006
     3printingflag=false;
    34
    45L_list={5000,10000,20000,40000,80000,160000};
     6L_list={80000};
    57results={};
     8minvx=[];
     9maxvx=[];
    610
    711for i=1:length(L_list),
     
    1216        md=squaremesh(md,L,L,nx,ny);
    1317        md=geography(md,'',''); %ice sheet test
     18
     19%       %Find elements at the corner and extract model
     20%       posnodes=find((md.x==0 | md.x==max(md.x)) & (md.y==0 | md.y==max(md.y)));
     21%       [a,b]=find(ismember(md.elements,posnodes));
     22%       elements=ones(md.numberofelements,1);
     23%       elements(a)=0;
     24%       md=modelextract(md,elements);
     25
    1426        md=parameterize(md,'../Par/ISMIPA.par');
    15         md=extrude(md,9,1);
    16 
    17         md=setelementstype(md,'pattyn','all','stokes','all');
     27        md=extrude(md,10,1);
     28        md=setelementstype(md,'stokes','all');
    1829
    1930        %Create dirichlet on the bed only
    20         md.spcvelocity=zeros(md.numberofgrids,6);
     31        %md.spcvelocity=zeros(md.numberofgrids,6);
    2132        pos=find(md.gridonbed);
    22         md.spcvelocity(pos,1:2)=1;
     33        md.spcvelocity(pos,1:3)=1;
    2334
    2435        %Create MPCs to have periodic boundary conditions
    25         posx=find(md.x==0);
    26         posx2=find(md.x==max(md.x));
     36        %posx=find(md.x==0);
     37        %posx2=find(md.x==max(md.x));
     38        %posx=find(md.x==0 & md.y~=0 & md.y~=max(md.y) & ~md.gridonbed);
     39        %posx2=find(md.x==max(md.x) &  md.y~=0 & md.y~=max(md.y) & ~md.gridonbed);
    2740
    28         posy=find(md.y==0 & md.x~=0 & md.x~=max(md.x)); %Don't take the same grids two times
    29         posy2=find(md.y==max(md.y) & md.x~=0 & md.x~=max(md.x));
     41        %posy=find(md.y==0 & md.x~=0 & md.x~=max(md.x) & ~md.gridonbed); %Don't take the same grids two times
     42        %posy2=find(md.y==max(md.y) & md.x~=0 & md.x~=max(md.x) & ~md.gridonbed);
    3043
    31         md.penalties=[posx,posx2;posy,posy2];
     44        %md.penalties=[posx,posx2;posy,posy2];
    3245
    3346        %Compute the diagnostic
     47        md.verbose=3;
     48        md.eps_abs=NaN;
     49        md.eps_rel=NaN;
     50        md.eps_res=1;
    3451        md=solve(md,'analysis_type',DiagnosticSolutionEnum);
    3552
     
    3855        vy=PatchToVec(md.results.DiagnosticSolution.Vy);
    3956        vz=PatchToVec(md.results.DiagnosticSolution.Vz);
     57        pressure=PatchToVec(md.results.DiagnosticSolution.Pressure);
    4058        results{i}=md.results.DiagnosticSolution;
     59        minvx(i)=min(vx(end-md.numberofgrids2d+1:end));
     60        maxvx(i)=max(vx(end-md.numberofgrids2d+1:end));
    4161
    42         plotmodel(md,'data',vx,'data',vy,'data',vz,'layer#all',md.numlayers)
     62        %Now plot vx, vy, vz and vx on a cross section
     63        plotmodel(md,'data',vx,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',2)
     64        if printingflag,
     65                set(gcf,'Color','w')
     66                printmodel(['ismipastokesvx' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');
     67                system(['mv ismipastokesvx' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']);
     68        end
     69        plotmodel(md,'data',vy,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',3)
     70        if printingflag,
     71                set(gcf,'Color','w')
     72                printmodel(['ismipastokesvy' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');
     73                system(['mv ismipastokesvy' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']);
     74        end
     75        plotmodel(md,'data',vz,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',4)
     76        if printingflag,
     77                set(gcf,'Color','w')
     78                printmodel(['ismipastokesvz' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');
     79                system(['mv ismipastokesvz' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']);
     80        end
    4381
     82        if(L==5000),
     83                plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP5000.exp','layer',md.numlayers,...
     84                        'resolution',[10 10],'ylim',[10 18],'xlim',[0 5000],'title','','xlabel','')
     85        elseif(L==10000),
     86                plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP10000.exp','layer',md.numlayers,...
     87                        'resolution',[10 10],'ylim',[10 30],'xlim',[0 10000],'title','','xlabel','')
     88        elseif(L==20000),
     89                plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP20000.exp','layer',md.numlayers,...
     90                        'resolution',[10 10],'ylim',[0 50],'xlim',[0 20000],'title','','xlabel','')
     91        elseif(L==40000),
     92                plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP40000.exp','layer',md.numlayers,...
     93                        'resolution',[10 10],'ylim',[0 80],'xlim',[0 40000],'title','','xlabel','')
     94        elseif(L==80000),
     95                plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP80000.exp','layer',md.numlayers,...
     96                        'resolution',[10 10],'ylim',[0 100],'xlim',[0 80000],'title','','xlabel','')
     97        elseif(L==160000),
     98                plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP160000.exp','layer',md.numlayers,...
     99                        'resolution',[10 10],'ylim',[0 120],'xlim',[0 160000],'title','','xlabel','')
     100        end
     101        if printingflag,
     102                set(gcf,'Color','w')
     103                printmodel(['ismipastokesvxsec' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');
     104                system(['mv ismipastokesvxsec' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']);
     105        end
    44106end
    45107
     108%Now plot the min and max values of vx for each size of the square
     109plot([5 10 20 40 80 160],minvx);ylim([0 18])
     110if printingflag,
     111        set(gcf,'Color','w')
     112        printmodel('ismipastokesminvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');
     113        system(['mv ismipastokesminvx.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']);
     114end
     115plot([5 10 20 40 80 160],maxvx);ylim([0 120])
     116if printingflag,
     117        set(gcf,'Color','w')
     118        printmodel('ismipastokesmaxvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');
     119        system(['mv ismipastokesmaxvx.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']);
     120end
    46121%Fields and tolerances to track changes
    47122field_names     ={...
  • issm/trunk/test/NightlyRun/test1103.m

    r5540 r5606  
    11%This test is a test from the ISMP-HOM Intercomparison project
    22%Pattyn and Payne 2006
    3 printingflag=true;
     3printingflag=false;
    44
    55L_list={5000,10000,20000,40000,80000,160000};
  • issm/trunk/test/NightlyRun/test1105.m

    r5540 r5606  
    11%This test is a test from the ISMP-HOM Intercomparison project
    22%Pattyn and Payne 2006
    3 printingflag=true;
     3printingflag=false;
    44
    55L_list={5000,10000,20000,40000,80000,160000};
  • issm/trunk/test/NightlyRun/test1107.m

    r5540 r5606  
    11%This test is a test from the ISMP-HOM Intercomparison project
    22%Pattyn and Payne 2006
    3 printingflag=true;
     3printingflag=false;
    44
    55L_list={5000,10000,20000,40000,80000,160000};
  • issm/trunk/test/NightlyRun/test1109.m

    r5567 r5606  
    55%                   - Pattyn with some sliding
    66%                   - Stokes with some sliding
    7 printingflag=true;
     7printingflag=false;
    88results={};
    99
  • issm/trunk/test/NightlyRun/test1201.m

    r5423 r5606  
    11%This test is a test from the EISMINT for Ice shelves Vincent Rommelaere 1996
    2 printingflag=true;
     2printingflag=false;
    33
    44results={};
  • issm/trunk/test/NightlyRun/test1202.m

    r5423 r5606  
    11%Test on the diagnostic model and the prognostic in 2d
    2 printingflag=true;
     2printingflag=false;
    33
    44%tests 3 and 4: using Glen's flow law
  • issm/trunk/test/NightlyRun/test1203.m

    r5423 r5606  
    11%Test on the diagnostic model and the prognostic in 2d
    2 printingflag=true;
     2printingflag=false;
    33
    44%test 5 and 6 :
  • issm/trunk/test/NightlyRun/test1205.m

    r5117 r5606  
    4444%Plot of the velocity from the exact and calculated solutions
    4545figure(1)
     46set(gcf,'Position',[1 1 1580 1150])
    4647subplot(2,2,1)
    4748p=patch('Faces',md.elements2d,'Vertices',[md.x2d md.y2d],'FaceVertexCData',...
  • issm/trunk/test/NightlyRun/test1207.m

    r5117 r5606  
    1717%We extrude the model to have a 3d model
    1818md=extrude(md,numlayers,1);
    19 md=setelementstype(md,'pattyn','all','stokes','all');
     19md=setelementstype(md,'stokes','all');
    2020
    2121%Spc the grids on the bed
  • issm/trunk/test/NightlyRun/test1208.m

    r5198 r5606  
    11%EISMINT benchmark experiment A
    22numlayers=10;
    3 resolution=30000;
     3resolution=40000;
    44
    55%To begin with the numerical model
     
    1818
    1919%Adapt the time steps to the resolution
    20 md.dt=25;
     20md.dt=20;
     21md.verbose=10;
    2122md.output_frequency=20;
    2223
  • issm/trunk/test/NightlyRun/test1301.m

    r5423 r5606  
    33% at upper surface and an impose flux at its base. The result must be a linear temperature from the upper to the lower
    44% surface with an imposed slope (Geothermal flux). if it is not the case, something is thermal modeling has been changed...
    5 printingflag=true;
     5printingflag=false;
    66
    77md=model;
  • issm/trunk/test/NightlyRun/test1302.m

    r5423 r5606  
    22% There is u=v=0 and w=cst everywhere the only thermal boundary conditions are an imposed temperature
    33% at upper surface and an impose flux at its base.
    4 printingflag=true;
     4printingflag=false;
    55
    66md=model;
  • issm/trunk/test/NightlyRun/test1303.m

    r5423 r5606  
    33% at the lower and upper surface. The result must be a linear temperature from the upper to the lower
    44% surface. if it is not the case, something is thermal modeling has been changed...
    5 printingflag=true;
     5printingflag=false;
    66
    77md=model;
  • issm/trunk/test/NightlyRun/test1304.m

    r5423 r5606  
    33% at upper surface and an impose flux at its base. The result must be a linear temperature from the upper to the lower
    44% surface with an imposed slope (Geothermal flux). if it is not the case, something is thermal modeling has been changed...
    5 printingflag=true;
     5printingflag=false;
    66
    77md=model;
Note: See TracChangeset for help on using the changeset viewer.