Changeset 14190


Ignore:
Timestamp:
12/18/12 11:19:22 (12 years ago)
Author:
helsen
Message:

changed python scripts for SmbGradients NightlyRuns tests

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test328.py

    r13967 r14190  
    1515md=setflowequation(md,'macayeal','all')
    1616md.surfaceforcings.issmbgradients=1
    17 md.surfaceforcings.smb_pos_max=5000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y
    18 md.surfaceforcings.smb_pos_min=1250. + 0.00005*md.mesh.x -0.0001*md.mesh.y
    19 md.surfaceforcings.a_pos=15000. - 0.000051*md.mesh.x + 0.00011*md.mesh.y
    2017md.surfaceforcings.b_pos=-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y
    21 md.surfaceforcings.a_neg=-20000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y
    2218md.surfaceforcings.b_neg=250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y
    23 md.surfaceforcings.hc=(md.surfaceforcings.a_pos-md.surfaceforcings.a_neg)/(md.surfaceforcings.b_neg-md.surfaceforcings.b_pos)
    2419md.transient.requested_outputs=TotalSmbEnum()
    2520md.surfaceforcings.href=copy.deepcopy(md.geometry.surface).reshape(-1)
    26 smbref=numpy.empty_like(md.surfaceforcings.hc)
    27 for i in xrange(numpy.size(md.surfaceforcings.hc,axis=0)):
    28         if md.geometry.surface[i]<md.surfaceforcings.hc[i]:
    29                 smbref[i]=md.surfaceforcings.a_neg[i]+md.surfaceforcings.b_neg[i]*md.geometry.surface[i]
    30         else:
    31                 smbref[i]=md.surfaceforcings.a_pos[i]+md.surfaceforcings.b_pos[i]*md.geometry.surface[i]
    32 md.surfaceforcings.smbref=smbref
     21md.surfaceforcings.smbref= 1000 - 0.001*md.mesh.x - 0.005*md.mesh.y;
    3322md.cluster=generic('name',oshostname(),'np',3)
    3423md=solve(md,TransientSolutionEnum())
  • issm/trunk-jpl/test/NightlyRun/test329.py

    r13967 r14190  
    1616md=setflowequation(md,'pattyn','all')
    1717md.surfaceforcings.issmbgradients=1
    18 md.surfaceforcings.smb_pos_max=5000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y
    19 md.surfaceforcings.smb_pos_min=1250. + 0.00005*md.mesh.x -0.0001*md.mesh.y
    20 md.surfaceforcings.a_pos=15000. - 0.000051*md.mesh.x + 0.00011*md.mesh.y
    2118md.surfaceforcings.b_pos=-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y
    22 md.surfaceforcings.a_neg=-20000. - 0.00005*md.mesh.x + 0.0001*md.mesh.y
    2319md.surfaceforcings.b_neg=250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y
    24 md.surfaceforcings.hc=(md.surfaceforcings.a_pos-md.surfaceforcings.a_neg)/(md.surfaceforcings.b_neg-md.surfaceforcings.b_pos)
    2520md.surfaceforcings.href=copy.deepcopy(md.geometry.surface).reshape(-1)
    26 smbref=numpy.empty_like(md.surfaceforcings.hc)
    27 for i in xrange(numpy.size(md.surfaceforcings.hc,axis=0)):
    28         if md.geometry.surface[i]<md.surfaceforcings.hc[i]:
    29                 smbref[i]=md.surfaceforcings.a_neg[i]+md.surfaceforcings.b_neg[i]*md.geometry.surface[i]
    30         else:
    31                 smbref[i]=md.surfaceforcings.a_pos[i]+md.surfaceforcings.b_pos[i]*md.geometry.surface[i]
    32 md.surfaceforcings.smbref=smbref
     21md.surfaceforcings.smbref= 1000 - 0.001*md.mesh.x - 0.005*md.mesh.y;
    3322md.transient.requested_outputs=TotalSmbEnum()
    3423md.cluster=generic('name',oshostname(),'np',3)
     
    3625
    3726#Fields and tolerances to track changes
    38 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']
     27field_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']
    3928field_tolerances=[1e-09,1e-09,1e-09,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,\
    4029        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.