Changeset 5422


Ignore:
Timestamp:
08/19/10 11:51:01 (15 years ago)
Author:
seroussi
Message:

added printflag

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

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/test/NightlyRun/test1201.m

    r5375 r5422  
    11%This test is a test from the EISMINT for Ice shelves Vincent Rommelaere 1996
     2printingflag=true;
    23
    34results={};
     
    5758plot(s,h1,'r',s,h2,'b',s,h3,'g',s,hth,'k')
    5859legend('Art. diff.','No Art. diff.','Discontinue','Theorique')
    59 
    60 set(gcf,'Color','w')
    61 printmodel('eismintmasscthickness','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     60if printingflag,
     61        set(gcf,'Color','w')
     62        printmodel('eismintmasscthickness','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     63end
    6264
    6365%Fields and tolerances to track changes
  • TabularUnified issm/trunk/test/NightlyRun/test1202.m

    r5304 r5422  
    11%Test on the diagnostic model and the prognostic in 2d
     2printingflag=true;
    23
    34%tests 3 and 4: using Glen's flow law
     
    1516vy=PatchToVec(md.results.DiagnosticSolution.Vy);
    1617
    17 plotmodel(md,'data',vx,'contourlevels',{0,20,40,60,60,100,120,140,160,180,-20,-40,-60,-80,-100,-120,-140,-160,-180},...
    18         'visible','off','contourcolor','k')
    19 set(gcf,'Color','w')
    20 printmodel('eismintdiag1vx','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     18plotmodel(md,'data',vx,'contourlevels',{0,20,40,60,60,100,120,140,160,180,-20,-40,-60,-80,-100,-120,-140,-160,-180}, ...
     19        'contourcolor','k')
     20if printingflag,
     21        set(gcf,'Color','w')
     22        printmodel('eismintdiag1vx','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     23end
    2124
    2225plotmodel(md,'data',vy,'contourlevels',{-100,-200,-300,-400,-500,-600,-700,-800,-900,-1000},...
    23         'visible','off','contourcolor','k')
    24 set(gcf,'Color','w')
    25 printmodel('eismintdiag1vy','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     26        'contourcolor','k')
     27if printingflag,
     28        set(gcf,'Color','w')
     29        printmodel('eismintdiag1vy','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     30end
    2631
    2732%Fields and tolerances to track changes
  • TabularUnified issm/trunk/test/NightlyRun/test1203.m

    r5304 r5422  
    11%Test on the diagnostic model and the prognostic in 2d
     2printingflag=true;
    23
    34%test 5 and 6 :
     
    1920
    2021%plot results
    21 plotmodel(md,'data',vx,'contourlevels',{0,20,40,60,80,100,-20,-40,-60,-80,-100},'visible','off',...
     22plotmodel(md,'data',vx,'contourlevels',{0,20,40,60,80,100,-20,-40,-60,-80,-100},...
    2223        'contourcolor','k')
    23 set(gcf,'Color','w')
    24 printmodel('eismintdiag2vx','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     24if printingflag,
     25        set(gcf,'Color','w')
     26        printmodel('eismintdiag2vx','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     27end
    2528plotmodel(md,'data',vy,'contourlevels',{-100,-200,-300,-400,-500,-600,-700,-800,-900,-1000},...
    26         'contourcolor','k','visible','off')
    27 set(gcf,'Color','w')
    28 printmodel('eismintdiag2vy','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     29        'contourcolor','k')
     30if printingflag,
     31        set(gcf,'Color','w')
     32        printmodel('eismintdiag2vy','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     33end
    2934
    3035%Fields and tolerances to track changes
  • TabularUnified issm/trunk/test/NightlyRun/test1301.m

    r5277 r5422  
    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 % Just run this file in Matlab, with a properly setup Ice code.
     5printingflag=true;
    66
    77md=model;
     
    3434plotmodel(md,'data',comp_melting,'title','Modeled melting','data',melting,'title','Analytical melting',...
    3535        'data',comp_melting-melting,'title','Absolute error','data',relative,'title','Relative error [%]',...
    36         'layer#all',1,'caxis#2',[1.02964 1.02966]*10^-4,'FontSize#all',20,'figposition','mathieu','visible','off')
    37 set(gcf,'Color','w')
    38 printmodel('thermalmelting','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     36        'layer#all',1,'caxis#2',[1.02964 1.02966]*10^-4,'FontSize#all',20,'figposition','mathieu')
     37if printingflag,
     38        set(gcf,'Color','w')
     39        printmodel('thermalmelting','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     40end
    3941
    4042
  • TabularUnified issm/trunk/test/NightlyRun/test1302.m

    r5277 r5422  
    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 % Just run this file in Matlab, with a properly setup Ice code.
     4printingflag=true;
    55
    66md=model;
     
    3636        'title','Analytical temperature [K]','view',3,'data',comp_temp-md.observed_temperature,...
    3737        'title','Absolute error [K]','view',3,'data',relative,'title','Relative error [%]','view',3,...
    38         'visible','off','figposition','mathieu','FontSize#all',20)
    39 set(gcf,'Color','w')
    40 printmodel('thermaladvection','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     38        'figposition','mathieu','FontSize#all',20)
     39if printingflag,
     40        set(gcf,'Color','w')
     41        printmodel('thermaladvection','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     42end
    4143
    4244%Fields and tolerances to track changes
  • TabularUnified issm/trunk/test/NightlyRun/test1303.m

    r5277 r5422  
    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 % Just run this file in Matlab, with a properly setup Ice code.
     5printingflag=true;
    66
    77md=model;
     
    3131        'title','Analytical temperature [K]','view',3,'data',comp_temp-md.observed_temperature,...
    3232        'title','Absolute error [K]','view',3,'data',relative,'title','Relative error [%]','view',3,...
    33         'visible','off','figposition','mathieu','FontSize#all',20)
    34 set(gcf,'Color','w')
    35 printmodel('thermalconduction','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     33        'figposition','mathieu','FontSize#all',20)
     34if printingflag,
     35        set(gcf,'Color','w')
     36        printmodel('thermalconduction','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     37end
    3638
    3739%Fields and tolerances to track changes
  • TabularUnified issm/trunk/test/NightlyRun/test1304.m

    r5277 r5422  
    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...
     5printingflag=true;
    56
    67md=model;
     
    3132        'title','Analytical temperature','view',3,'data',comp_temp-md.observed_temperature,...
    3233        'title','Absolute error [K]','view',3,'data',relative,'title','Relative error [%]','view',3,...
    33         'visible','off','figposition','mathieu','FontSize#all',20)
    34 set(gcf,'Color','w')
    35 printmodel('thermalgeothermalflux','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     34        'figposition','mathieu','FontSize#all',20)
     35if printingflag,
     36        set(gcf,'Color','w')
     37        printmodel('thermalgeothermalflux','png','margin','on','marginsize',25,'frame','off','resolution',0.7,'hardcopy','off');
     38end
    3639
    3740%Fields and tolerances to track changes
Note: See TracChangeset for help on using the changeset viewer.