Changeset 14107


Ignore:
Timestamp:
12/07/12 14:05:59 (12 years ago)
Author:
jschierm
Message:

NEW: Working python tests 1201-1204, 1208.

Location:
issm/trunk-jpl/test/NightlyRun
Files:
5 added
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/python_skipped_tests.txt

    r14102 r14107  
    1111test418    needs Dakota
    1212test420    needs Dakota
    13 test1401    roundoff error in metric causes different meshes from matlab
    14 test1402    roundoff error in metric causes different meshes from matlab
     13
     14test1401,test1402
     15Roundoff error in ComputeHessian and ComputeMetric causes different meshes
     16from matlab, specifically in the handling of 0/0=nan, eps/0=inf, etc.  Since
     17the mesh is of a different size, NR fails.  (Note Matlab test1402 currently
     18fails.)
     19
     20test1205,test1206,test1207
     21The expression for the thickness in the RoundSheetStaticEISMINT.par/py files
     22includes an expression (1/2)^(4/3)-(r/(2*rmax))^(4/3).  For r close to rmax,
     23the outer circumference, this equals roundoff zero, but differences
     24propagate into the sixth digit of the thickness, which is enough to fail NR.
     25
  • issm/trunk-jpl/test/NightlyRun/test1201.m

    r13664 r14107  
    66for stabilization=1:3;
    77        %The goal is to test the prognostic model
    8         md=bamg(model(),'domain','../Exp/SquareEISMINT.exp','hmax',3000);
     8        md=bamg(model(),'domain','../Exp/SquareEISMINT.exp','hmax',3000.);
    99        md=setmask(md,'all','');
    1010        md=parameterize(md,'../Par/SquareEISMINT.par');
    11         md.surfaceforcings.mass_balance(:)=0;
     11        md.surfaceforcings.mass_balance(:)=0.;
    1212        md=setflowequation(md,'macayeal','all');
    1313        md.cluster=generic('name',oshostname(),'np',8);
     
    1515        disp('      initial velocity');
    1616        md.initialization.vx=zeros(md.mesh.numberofvertices,1);
    17         md.initialization.vy=-400*ones(md.mesh.numberofvertices,1);
     17        md.initialization.vy=-400.*ones(md.mesh.numberofvertices,1);
    1818
    1919        %Stabilization
     
    2929        md.prognostic.spcthickness=NaN*ones(md.mesh.numberofvertices+1,length(times));
    3030        md.prognostic.spcthickness(end,:)=times;
    31         md.prognostic.spcthickness(pos,:)=repmat(500+100*sin(2*pi*times/200),length(pos),1);
     31        md.prognostic.spcthickness(pos,:)=repmat(500.+100.*sin(2.*pi*times/200.),length(pos),1);
    3232        if stabilization==3,
    33                 pos=find(isnan(md.prognostic.spcthickness)); md.prognostic.spcthickness(pos)=500; %No NaN for DG
     33                pos=find(isnan(md.prognostic.spcthickness)); md.prognostic.spcthickness(pos)=500.; %No NaN for DG
    3434        end
    3535
     
    4343
    4444%plot results
    45 [elements,x,y,z,s,h1]=SectionValues(md,results{1},'../Exp/CrossLineEISMINT.exp',100);
    46 [elements,x,y,z,s,h2]=SectionValues(md,results{2},'../Exp/CrossLineEISMINT.exp',100);
    47 [elements,x,y,z,s,h3]=SectionValues(md,results{3},'../Exp/CrossLineEISMINT.exp',100);
    48 [elements,x,y,z,s,hth]=SectionValues(md, 500+100*sin(2*pi/200*(500-md.mesh.y/400)),'../Exp/CrossLineEISMINT.exp',100);
     45[elements,x,y,z,s,h1]=SectionValues(md,results{1},'../Exp/CrossLineEISMINT.exp',100.);
     46[elements,x,y,z,s,h2]=SectionValues(md,results{2},'../Exp/CrossLineEISMINT.exp',100.);
     47[elements,x,y,z,s,h3]=SectionValues(md,results{3},'../Exp/CrossLineEISMINT.exp',100.);
     48[elements,x,y,z,s,hth]=SectionValues(md, 500+100*sin(2*pi/200*(500-md.mesh.y/400)),'../Exp/CrossLineEISMINT.exp',100.);
    4949plot(s,h1,'r',s,h2,'b',s,h3,'g',s,hth,'k')
    5050legend('Art. diff.','No Art. diff.','D.G.','Theoretical')
    51 if printingflag, 
     51if printingflag,
    5252        set(gcf,'Color','w')
    5353        export_fig([issmdir() '/website/doc_pdf/validation/Images/EISMINT/IceShelf/eismintmasscthickness.pdf']);
     
    5656%Fields and tolerances to track changes
    5757field_names     ={ ...
    58         'ThicknessArtDigg','ThicknessNoArtDiff','ThicknessDG' ...
     58        'ThicknessArtDiff','ThicknessNoArtDiff','ThicknessDG' ...
    5959};
    6060field_tolerances={...
  • issm/trunk-jpl/test/NightlyRun/test1202.m

    r13670 r14107  
    1919plotmodel(md,'data',vx,'contourlevels',{0,20,40,60,60,100,120,140,160,180,-20,-40,-60,-80,-100,-120,-140,-160,-180}, ...
    2020        'contourcolor','k')
    21 if printingflag, 
     21if printingflag,
    2222        set(gcf,'Color','w')
    2323        printmodel('eismintdiag1vx','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     
    2727plotmodel(md,'data',vy,'contourlevels',{-100,-200,-300,-400,-500,-600,-700,-800,-900,-1000},...
    2828        'contourcolor','k')
    29 if printingflag, 
     29if printingflag,
    3030        set(gcf,'Color','w')
    3131        printmodel('eismintdiag1vy','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
  • issm/trunk-jpl/test/NightlyRun/test1203.m

    r13670 r14107  
    22printingflag=false;
    33
    4 %test 5 and 6 :
     4%test 5 and 6:
    55md=model();
    66md=triangle(md,'../Exp/SquareEISMINT.exp',5100.); %test3
     
    1111%Impose a non zero velocity on the upper boundary condition (y=max(y))
    1212pos=find(md.mesh.y==max(md.mesh.y));
    13 md.diagnostic.spcvy(pos)=400*(((md.mesh.x(pos)-100000)/25000).^2-ones(size(pos,1),1)).*heaviside((1+eps)*ones(size(pos,1),1)-((md.mesh.x(pos)-100000)/25000).^2);
     13md.diagnostic.spcvy(pos)=400.*(((md.mesh.x(pos)-100000.)/25000.).^2-ones(size(pos,1),1)).*heaviside((1.+eps)*ones(size(pos,1),1)-((md.mesh.x(pos)-100000.)/25000.).^2);
    1414
    1515%Compute solution for MacAyeal's model
     
    2323plotmodel(md,'data',vx,'contourlevels',{0,20,40,60,80,100,-20,-40,-60,-80,-100},...
    2424        'contourcolor','k')
    25 if printingflag, 
     25if printingflag,
    2626        set(gcf,'Color','w')
    2727        printmodel('eismintdiag2vx','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     
    3030plotmodel(md,'data',vy,'contourlevels',{-100,-200,-300,-400,-500,-600,-700,-800,-900,-1000},...
    3131        'contourcolor','k')
    32 if printingflag, 
     32if printingflag,
    3333        set(gcf,'Color','w')
    3434        printmodel('eismintdiag2vy','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
  • issm/trunk-jpl/test/NightlyRun/test1204.m

    r13670 r14107  
    1111%Impose a non zero velocity on the upper boundary condition (y=max(y))
    1212pos=find(md.mesh.y==max(md.mesh.y));
    13 md.diagnostic.spcvy(pos)=400*(((md.mesh.x(pos)-100000)/25000).^2-ones(size(pos,1),1)).*heaviside((1+eps)*ones(size(pos,1),1)-((md.mesh.x(pos)-100000)/25000).^2);
     13md.diagnostic.spcvy(pos)=400.*(((md.mesh.x(pos)-100000.)/25000.).^2-ones(size(pos,1),1)).*heaviside((1.+eps)*ones(size(pos,1),1)-((md.mesh.x(pos)-100000.)/25000.).^2);
    1414
    1515%Compute solution for MacAyeal's model
     
    2121md.initialization.vy=(md.results.DiagnosticSolution.Vy);
    2222
    23 md.timestepping.time_step=1;
    24 md.timestepping.final_time=5000;
     23md.timestepping.time_step=1.;
     24md.timestepping.final_time=5000.;
    2525md.prognostic.stabilization=1;
    2626md=solve(md,TransientSolutionEnum());
    2727
    2828plotmodel(md,'data',(md.results.TransientSolution(end).Vx))
    29 if printingflag, 
     29if printingflag,
    3030        set(gcf,'Color','w')
    3131        printmodel('eisminttrans2vx','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     
    3434
    3535plotmodel(md,'data',(md.results.TransientSolution(end).Vy))
    36 if printingflag, 
     36if printingflag,
    3737        set(gcf,'Color','w')
    3838        printmodel('eisminttrans2vy','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
     
    4141
    4242plotmodel(md,'data',(md.results.TransientSolution(end).Thickness))
    43 if printingflag, 
     43if printingflag,
    4444        set(gcf,'Color','w')
    4545        printmodel('eisminttrans2thickness','png','margin','on','marginsize',25,'frame','off','resolution',2,'hardcopy','off');
  • issm/trunk-jpl/test/NightlyRun/test1208.m

    r13671 r14107  
    11%EISMINT benchmark experiment A
    22numlayers=8;
    3 resolution=50000;
     3resolution=50000.;
    44
    55%To begin with the numerical model
     
    1414%Spc the nodes on the bed
    1515pos=find(md.mesh.vertexonbed);
    16 md.diagnostic.spcvx(pos)=0;
    17 md.diagnostic.spcvy(pos)=0;
    18 md.diagnostic.spcvz(pos)=0;
     16md.diagnostic.spcvx(pos)=0.;
     17md.diagnostic.spcvy(pos)=0.;
     18md.diagnostic.spcvz(pos)=0.;
    1919
    2020%Adapt the time steps to the resolution
    21 md.timestepping.time_step=15;
     21md.timestepping.time_step=15.;
    2222md.settings.output_frequency=500;
    23 md.timestepping.final_time=30000;
     23md.timestepping.final_time=30000.;
    2424md.prognostic.stabilization=1;
    2525md.thermal.stabilization=1;
Note: See TracChangeset for help on using the changeset viewer.