Changeset 13971


Ignore:
Timestamp:
11/15/12 15:49:34 (12 years ago)
Author:
jschierm
Message:

NEW: Working test1601.py and test1602.py.

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/runme.m

    r13438 r13971  
    6767end
    6868% }}}
    69 %GET RANK and NUMPROCS for mutlithreaded runs  {{{
     69%GET RANK and NUMPROCS for multithreaded runs  {{{
    7070rank=getfieldvalue(options,'rank',1);
    7171numprocs=getfieldvalue(options,'numprocs',1);
  • issm/trunk-jpl/test/NightlyRun/test1501.m

    r13670 r13971  
    88md.transient.isthermal=0;
    99
    10 md.timestepping.time_step=1;
     10md.timestepping.time_step=1.;
    1111md.settings.output_frequency=1;
    12 md.timestepping.final_time=2000;
     12md.timestepping.final_time=2000.;
    1313
    1414%Solve for thinning rate -> -1 * surface mass balance
    15 smb= 2*ones(md.mesh.numberofvertices,1);   
     15smb= 2.*ones(md.mesh.numberofvertices,1);   
    1616md.surfaceforcings.mass_balance= smb;
    1717md.basalforcings.melting_rate= smb;
     
    2727smb = md.surfaceforcings.mass_balance;
    2828
    29 tooth= [ [ones(400,1)*(smb') - 10]' [ones(400,1)*(smb')]' ];
     29tooth= [ [ones(400,1)*(smb') - 10.]' [ones(400,1)*(smb')]' ];
    3030smb=[ [ones(399,1)*(smb')]' smb  tooth tooth];
    3131
    3232md.surfaceforcings.mass_balance= smb;
    33 md.surfaceforcings.mass_balance(end+1,:)=[1:2000];
     33md.surfaceforcings.mass_balance(end+1,:)=[1.:2000.];
    3434
    3535md=solve(md,TransientSolutionEnum());
  • issm/trunk-jpl/test/NightlyRun/test1502.m

    r13671 r13971  
    99md.transient.isthermal=0;
    1010
    11 md.timestepping.time_step=1;
     11md.timestepping.time_step=1.;
    1212md.settings.output_frequency=1;
    13 md.timestepping.final_time=2000;
     13md.timestepping.final_time=2000.;
    1414
    1515%Solve for thinning rate -> -1 * surface mass balance
    16 smb= 2*ones(md.mesh.numberofvertices,1);   
     16smb= 2.*ones(md.mesh.numberofvertices,1);   
    1717md.surfaceforcings.mass_balance= smb;
    1818md.basalforcings.melting_rate= smb;
     
    2828smb = md.surfaceforcings.mass_balance;
    2929
    30 tooth= [ [ones(400,1)*(smb') - 10]' [ones(400,1)*(smb')]' ];
     30tooth= [ [ones(400,1)*(smb') - 10.]' [ones(400,1)*(smb')]' ];
    3131smb=[ [ones(399,1)*(smb')]' smb  tooth tooth];
    3232
    3333md.surfaceforcings.mass_balance= smb;
    34 md.surfaceforcings.mass_balance(end+1,:)=[1:2000];
     34md.surfaceforcings.mass_balance(end+1,:)=[1.:2000.];
    3535
    3636md=solve(md,TransientSolutionEnum());
  • issm/trunk-jpl/test/NightlyRun/test1601.m

    r13670 r13971  
    33md=parameterize(md,'../Par/SquareShelf.par');
    44md=setflowequation(md,'macayeal','all');
    5 md.diagnostic.spcvx(find(md.mesh.y>0))=NaN;
    6 md.initialization.vx(:)=0;
    7 md.initialization.vy(:)=0;
    8 md.initialization.vel(:)=0;
     5md.diagnostic.spcvx(find(md.mesh.y>0.))=NaN;
     6md.initialization.vx(:)=0.;
     7md.initialization.vy(:)=0.;
     8md.initialization.vel(:)=0.;
    99
    10 md.cluster=generic('name',oshostname,'np',2);
     10md.cluster=generic('name',oshostname(),'np',2);
    1111md=solve(md,DiagnosticSolutionEnum());
    1212vel0=md.results.DiagnosticSolution.Vel;
    1313
    14 theta=30*pi/180;
     14theta=30.*pi/180.;
    1515x=md.mesh.x;
    1616y=md.mesh.y;
     
    2727
    2828%Now, put CS back to normal except on the side where the spc are applied
    29 pos=find(x==0 | x==1000000);
     29pos=find(x==0. | x==1000000.);
    3030md.diagnostic.referential(:)=NaN;
    3131md.diagnostic.referential(pos,1:3)=repmat([cos(theta),sin(theta),0],size(pos,1),1);
  • issm/trunk-jpl/test/NightlyRun/test1602.m

    r13671 r13971  
    44md=extrude(md,5,1.);
    55md=setflowequation(md,'pattyn','all');
    6 md.diagnostic.spcvx(find(md.mesh.y>0))=NaN;
    7 md.initialization.vx(:)=0;
    8 md.initialization.vy(:)=0;
    9 md.initialization.vel(:)=0;
     6md.diagnostic.spcvx(find(md.mesh.y>0.))=NaN;
     7md.initialization.vx(:)=0.;
     8md.initialization.vy(:)=0.;
     9md.initialization.vel(:)=0.;
    1010
    11 md.cluster=generic('name',oshostname,'np',3);
     11md.cluster=generic('name',oshostname(),'np',3);
    1212md=solve(md,DiagnosticSolutionEnum());
    1313vel0=md.results.DiagnosticSolution.Vel;
    1414
    15 theta=30*pi/180;
     15theta=30.*pi/180.;
    1616x=md.mesh.x;
    1717y=md.mesh.y;
Note: See TracChangeset for help on using the changeset viewer.