Changeset 16171 for issm/trunk-jpl/test/Par/SquareShelf2.py
- Timestamp:
- 09/18/13 13:49:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/Par/SquareShelf2.py
r16170 r16171 23 23 iVelF = netCDF4.Dataset('../Data/SquareShelf.nc','r') 24 24 25 x= reshape(iVelF.variables['x'][:],(-1))26 y= reshape(iVelF.variables['y'][:],(-1))25 x=numpy.reshape(iVelF.variables['x'][:],(-1)) 26 y=numpy.reshape(iVelF.variables['y'][:],(-1)) 27 27 vx=iVelF.variables['vx'][:] 28 28 vy=iVelF.variables['vy'][:] … … 55 55 56 56 #Materials 57 md.initialization.temperature = (273.-20.)* ones((md.mesh.numberofvertices,1))57 md.initialization.temperature = (273.-20.)*numpy.ones((md.mesh.numberofvertices,1)) 58 58 md.materials.rheology_B = paterson(md.initialization.temperature) 59 md.materials.rheology_n = 3.* ones((md.mesh.numberofelements,1))59 md.materials.rheology_n = 3.*numpy.ones((md.mesh.numberofelements,1)) 60 60 61 61 #Damage … … 63 63 64 64 #Friction 65 md.friction.coefficient = 20.* ones((md.mesh.numberofvertices,1))65 md.friction.coefficient = 20.*numpy.ones((md.mesh.numberofvertices,1)) 66 66 md.friction.coefficient[numpy.nonzero(md.mask.groundedice_levelset<0.)[0]]=0. 67 md.friction.p = ones((md.mesh.numberofelements,1))68 md.friction.q = ones((md.mesh.numberofelements,1))67 md.friction.p = numpy.ones((md.mesh.numberofelements,1)) 68 md.friction.q = numpy.ones((md.mesh.numberofelements,1)) 69 69 70 70 #Numerical parameters … … 77 77 md.steadystate.reltol = 0.02 78 78 md.stressbalance.reltol = 0.02 79 md.stressbalance.abstol = nan79 md.stressbalance.abstol = float('nan') 80 80 md.timestepping.time_step = 1. 81 81 md.timestepping.final_time = 3.
Note:
See TracChangeset
for help on using the changeset viewer.