Changeset 13809


Ignore:
Timestamp:
10/23/12 11:49:56 (12 years ago)
Author:
jschierm
Message:

NEW: Working test423.py and RoundSheetShelf.py (plus archive and cosmetic Matlab changes).

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

Legend:

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

    r13712 r13809  
    1111test418    needs Dakota
    1212test420    needs Dakota
    13 test423    needs roundmesh (and not straightforward)
    1413test511    needs extract
    1514test613    needs extract
  • issm/trunk-jpl/test/NightlyRun/test423.m

    r13681 r13809  
    1 radius=1e6;
    2 shelfextent=2e5;
     1radius=1.e6;
     2shelfextent=2.e5;
    33
    44md=roundmesh(model(),radius,50000.);
     
    66rad=sqrt(md.mesh.x.^2+md.mesh.y.^2);
    77pos=find(rad==min(rad));
    8 md.mesh.x(pos)=0; md.mesh.y(pos)=0; %the closest node to the center is changed to be exactly at the center
    9 xelem=md.mesh.x(md.mesh.elements)*[1;1;1]/3;
    10 yelem=md.mesh.y(md.mesh.elements)*[1;1;1]/3;
     8md.mesh.x(pos)=0.; md.mesh.y(pos)=0.; %the closest node to the center is changed to be exactly at the center
     9xelem=md.mesh.x(md.mesh.elements)*[1;1;1]/3.;
     10yelem=md.mesh.y(md.mesh.elements)*[1;1;1]/3.;
    1111rad=sqrt(xelem.^2+yelem.^2);
    1212flags=zeros(md.mesh.numberofelements,1);
  • issm/trunk-jpl/test/Par/RoundSheetShelf.par

    r13137 r13809  
    22
    33di=md.materials.rho_ice/md.materials.rho_water;
    4 rad=1e6;
    5 shelfextent=2e5;
     4rad=1.e6;
     5shelfextent=2.e5;
    66%Geometry
    7 hmin=300;
    8 hmax=1000;
     7hmin=300.;
     8hmax=1000.;
    99radius=sqrt((md.mesh.x).*md.mesh.x+(md.mesh.y).*md.mesh.y);
    1010ymin=min(radius);
     
    1414
    1515pos=find(md.mask.vertexongroundedice);
    16 md.geometry.bed(pos)=md.geometry.bed(pos)-300*(radius(pos)-(rad-shelfextent))/(rad-shelfextent);
     16md.geometry.bed(pos)=md.geometry.bed(pos)-300.*(radius(pos)-(rad-shelfextent))/(rad-shelfextent);
    1717md.geometry.surface=md.geometry.bed+md.geometry.thickness;
    1818
    1919pos=find(radius<200000);
    20 md.geometry.thickness(pos)=100;
    21 md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20;
     20md.geometry.thickness(pos)=100.;
     21md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20.;
    2222md.geometry.surface(pos)=md.geometry.bed(pos)+md.geometry.thickness(pos);
    2323
    24 
    25 pos=find(md.mesh.x<.2*1e6 & md.mesh.x>-.2*1e6 & md.mesh.y>0);
    26 md.geometry.thickness(pos)=100;
    27 md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20;
     24pos=find(md.mesh.x<0.2*1.e6 & md.mesh.x>-0.2*1.e6 & md.mesh.y>0.);
     25md.geometry.thickness(pos)=100.;
     26md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20.;
    2827md.geometry.surface(pos)=md.geometry.bed(pos)+md.geometry.thickness(pos);
    2928
    30 pos=find(md.mesh.x<.1*1e6 & md.mesh.x>-.1*1e6 & md.mesh.y<-.5*1e6 & md.mesh.y>-.6*1e6);
    31 md.geometry.thickness(pos)=100;
    32 md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20;
     29pos=find(md.mesh.x<0.1*1.e6 & md.mesh.x>-0.1*1.e6 & md.mesh.y<-0.5*1.e6 & md.mesh.y>-0.6*1.e6);
     30md.geometry.thickness(pos)=100.;
     31md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20.;
    3332md.geometry.surface(pos)=md.geometry.bed(pos)+md.geometry.thickness(pos);
    3433
     
    3635di=md.materials.rho_ice/md.materials.rho_water;
    3736rad=sqrt(md.mesh.x.^2+md.mesh.y.^2);
    38 pos=find(rad<200000);
    39 md.geometry.thickness(pos)=100;
    40 md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20;
     37pos=find(rad<200000.);
     38md.geometry.thickness(pos)=100.;
     39md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20.;
    4140md.geometry.surface(pos)=md.geometry.bed(pos)+md.geometry.thickness(pos);
    4241
    43 pos=find(md.mesh.x<.2*1e6 & md.mesh.x>-.2*1e6 & md.mesh.y>0);
    44 md.geometry.thickness(pos)=100;
    45 md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20;
     42pos=find(md.mesh.x<0.2*1.e6 & md.mesh.x>-0.2*1.e6 & md.mesh.y>0.);
     43md.geometry.thickness(pos)=100.;
     44md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20.;
    4645md.geometry.surface(pos)=md.geometry.bed(pos)+md.geometry.thickness(pos);
    4746
    48 pos=find(md.mesh.x<.1*1e6 & md.mesh.x>-.1*1e6 & md.mesh.y<-.5*1e6 & md.mesh.y>-.6*1e6);
    49 md.geometry.thickness(pos)=100;
    50 md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20;
     47pos=find(md.mesh.x<0.1*1.e6 & md.mesh.x>-0.1*1.e6 & md.mesh.y<-0.5*1.e6 & md.mesh.y>-0.6*1.e6);
     48md.geometry.thickness(pos)=100.;
     49md.geometry.bed(pos)=-di*md.geometry.thickness(pos)-20.;
    5150md.geometry.surface(pos)=md.geometry.bed(pos)+md.geometry.thickness(pos);
     51
    5252%Initial velocity
    5353md.initialization.vx=zeros(md.mesh.numberofvertices,1);
     
    5757
    5858%Materials
    59 md.initialization.temperature=(273-20)*ones(md.mesh.numberofvertices,1);
     59md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1);
    6060md.materials.rheology_B=paterson(md.initialization.temperature);
    61 md.materials.rheology_n=3*ones(md.mesh.numberofelements,1);
     61md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
    6262
    6363%Surface mass balance and basal melting
    64 md.surfaceforcings.mass_balance=-10*ones(md.mesh.numberofvertices,1);
     64md.surfaceforcings.mass_balance=-10.*ones(md.mesh.numberofvertices,1);
    6565md.basalforcings.melting_rate=zeros(md.mesh.numberofvertices,1);
    66 pos=find(md.mask.vertexonfloatingice);md.basalforcings.melting_rate(pos)=10;
     66pos=find(md.mask.vertexonfloatingice);md.basalforcings.melting_rate(pos)=10.;
    6767md.basalforcings.geothermalflux=ones(md.mesh.numberofvertices,1);
    6868
    6969%Friction
    7070pos=find(md.mask.elementonfloatingice);
    71 md.friction.coefficient=20*ones(md.mesh.numberofvertices,1);
     71md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
    7272md.friction.coefficient(md.mesh.elements(pos,:))=0;
    7373md.friction.p=ones(md.mesh.numberofelements,1);
     
    8484md.steadystate.reltol=0.05;
    8585md.diagnostic.abstol=NaN;
    86 md.timestepping.time_step=5;
    87 md.timestepping.final_time=5;
     86md.timestepping.time_step=5.;
     87md.timestepping.final_time=5.;
    8888
    8989%bathymetry and grounding line migration:
    9090md.groundingline.migration='AgressiveMigration';
    9191md.geometry.bathymetry=md.geometry.bed;
    92 pos=find(md.mask.vertexonfloatingice); md.geometry.bathymetry(pos)=md.geometry.bed(pos)-900;
     92pos=find(md.mask.vertexonfloatingice); md.geometry.bathymetry(pos)=md.geometry.bed(pos)-900.;
    9393
    9494%Deal with boundary conditions:
     
    107107md.prognostic.spcthickness=NaN*ones(md.mesh.numberofvertices,1);
    108108md.diagnostic.referential=NaN*ones(md.mesh.numberofvertices,6);
    109 md.thermal.spctemperature=737*ones(md.mesh.numberofvertices,1);
     109md.thermal.spctemperature=737.*ones(md.mesh.numberofvertices,1);
    110110
    111111%Change name so that no test have the same name
Note: See TracChangeset for help on using the changeset viewer.