Changeset 14179


Ignore:
Timestamp:
12/17/12 17:10:53 (12 years ago)
Author:
helsen
Message:

CHG: updating Michiel's NR + added check in runme so that the id makes sense

Location:
issm/trunk-jpl/test/NightlyRun
Files:
3 edited

Legend:

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

    r13982 r14179  
    7979                        strncmp(fliplr(flist(i).name),fliplr('.m'),2)&...           %File name must end by '.m'
    8080                        ~strcmp(flist(i).name,'test.m'))                            %File name must be different than 'test.m'
    81                 list_ids(end+1)=eval(flist(i).name(5:end-2));                  %Keep test id only (skip 'test' and '.m')
     81                id=str2num(flist(i).name(5:end-2));
     82                if isempty(id),
     83                        disp(['WARNING: ignore file ' flist(i).name ]);
     84                else
     85                        list_ids(end+1)=eval(flist(i).name(5:end-2));                  %Keep test id only (skip 'test' and '.m')
     86                end
    8287        end
    8388end
  • issm/trunk-jpl/test/NightlyRun/test328.m

    r13670 r14179  
    44md=setflowequation(md,'macayeal','all');
    55md.surfaceforcings.issmbgradients=1;
    6 md.surfaceforcings.smb_pos_max=5000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y;
    7 md.surfaceforcings.smb_pos_min=1250. + 0.00005*md.mesh.x -0.0001*md.mesh.y;
    8 md.surfaceforcings.a_pos=15000. - 0.000051*md.mesh.x + 0.00011*md.mesh.y;
    96md.surfaceforcings.b_pos=-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y;
    10 md.surfaceforcings.a_neg=-20000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y;
    117md.surfaceforcings.b_neg=250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y;
    12 md.surfaceforcings.hc=(md.surfaceforcings.a_pos-md.surfaceforcings.a_neg)./(md.surfaceforcings.b_neg-md.surfaceforcings.b_pos);
     8md.surfaceforcings.href=md.geometry.surface;
     9md.surfaceforcings.smbref= 1000 - 0.001*md.mesh.x - 0.005*md.mesh.y;
    1310md.transient.requested_outputs=TotalSmbEnum();
    14 md.surfaceforcings.href=md.geometry.surface;
    15 for i=1:size(md.surfaceforcings.hc),
    16         if md.geometry.surface(i)<md.surfaceforcings.hc(i)
    17                 smbref(i)=md.surfaceforcings.a_neg(i)+md.surfaceforcings.b_neg(i)*md.geometry.surface(i);
    18         else
    19                 smbref(i)=md.surfaceforcings.a_pos(i)+md.surfaceforcings.b_pos(i)*md.geometry.surface(i);
    20         end
    21 end
    22 md.surfaceforcings.smbref=smbref';
    2311md.cluster=generic('name',oshostname(),'np',3);
    2412md=solve(md,TransientSolutionEnum());
  • issm/trunk-jpl/test/NightlyRun/test329.m

    r13688 r14179  
    55md=setflowequation(md,'pattyn','all');
    66md.surfaceforcings.issmbgradients=1;
    7 md.surfaceforcings.smb_pos_max=5000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y;
    8 md.surfaceforcings.smb_pos_min=1250. + 0.00005*md.mesh.x -0.0001*md.mesh.y;
    9 md.surfaceforcings.a_pos=15000. - 0.000051*md.mesh.x + 0.00011*md.mesh.y;
    107md.surfaceforcings.b_pos=-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y;
    11 md.surfaceforcings.a_neg=-20000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y;
    128md.surfaceforcings.b_neg=250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y;
    13 md.surfaceforcings.hc=(md.surfaceforcings.a_pos-md.surfaceforcings.a_neg)./(md.surfaceforcings.b_neg-md.surfaceforcings.b_pos);
    149md.surfaceforcings.href=md.geometry.surface;
    15 for i=1:size(md.surfaceforcings.hc),
    16         if md.geometry.surface(i)<md.surfaceforcings.hc(i)
    17                 smbref(i)=md.surfaceforcings.a_neg(i)+md.surfaceforcings.b_neg(i)*md.geometry.surface(i);
    18         else
    19                 smbref(i)=md.surfaceforcings.a_pos(i)+md.surfaceforcings.b_pos(i)*md.geometry.surface(i);
    20         end
    21 end
    22 md.surfaceforcings.smbref=smbref';
     10md.surfaceforcings.smbref= 1000 - 0.001*md.mesh.x - 0.005*md.mesh.y;
    2311md.transient.requested_outputs=TotalSmbEnum();
    2412md.cluster=generic('name',oshostname(),'np',3);
     
    2614
    2715%Fields and tolerances to track changes
    28 field_names     ={'Vx1','Vy1','Vz1','Vel1','Bed1','Surface1','Thickness1','Temperature1','SMB1','TotalSmb1','Vx2','Vy2','Vz2','Vel2','Bed2','Surface2','Thickness2','Temperature2','SMB2','TotalSmb1','Vx3','Vy3','Vz3','Vel3','Bed3','Surface3','Thickness3','Temperature3','SMB3','TotalSmb1'};
     16field_names     ={'Vx1','Vy1','Vz1','Vel1','Bed1','Surface1','Thickness1','Temperature1','SMB1','TotalSmb1','Vx2','Vy2','Vz2','Vel2','Bed2','Surface2','Thickness2','Temperature2','SMB2','TotalSmb2','Vx3','Vy3','Vz3','Vel3','Bed3','Surface3','Thickness3','Temperature3','SMB3','TotalSmb3'};
    2917field_tolerances={1e-09,1e-09,1e-09,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,...
    3018        1e-09,1e-09,1e-10,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,...
Note: See TracChangeset for help on using the changeset viewer.