Changeset 15519
- Timestamp:
- 07/19/13 08:09:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.py
r14529 r15519 32 32 # pos=find(md.mesh.vertexonboundary & ~nodeonicefront); 33 33 pos=numpy.nonzero(numpy.logical_and(md.mesh.vertexonboundary,numpy.logical_not(nodeonicefront)))[0] 34 md.diagnostic.spcvx=float('nan')*numpy.ones((md.mesh.numberofvertices, 1))35 md.diagnostic.spcvy=float('nan')*numpy.ones((md.mesh.numberofvertices, 1))36 md.diagnostic.spcvz=float('nan')*numpy.ones((md.mesh.numberofvertices, 1))34 md.diagnostic.spcvx=float('nan')*numpy.ones((md.mesh.numberofvertices,)) 35 md.diagnostic.spcvy=float('nan')*numpy.ones((md.mesh.numberofvertices,)) 36 md.diagnostic.spcvz=float('nan')*numpy.ones((md.mesh.numberofvertices,)) 37 37 md.diagnostic.spcvx[pos]=0 38 38 md.diagnostic.spcvy[pos]=0 … … 93 93 94 94 if isinstance(md.initialization.temperature,numpy.ndarray) and numpy.size(md.initialization.temperature,axis=0)==md.mesh.numberofvertices: 95 md.thermal.spctemperature=float('nan')*numpy.ones((md.mesh.numberofvertices, 1))95 md.thermal.spctemperature=float('nan')*numpy.ones((md.mesh.numberofvertices,)) 96 96 # pos=find(md.mesh.vertexonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface 97 97 pos=numpy.nonzero(md.mesh.vertexonsurface)[0] 98 98 md.thermal.spctemperature[pos]=md.initialization.temperature[pos] #impose observed temperature on surface 99 99 if not isinstance(md.basalforcings.geothermalflux,numpy.ndarray) or not numpy.size(md.basalforcings.geothermalflux,axis=0)==md.mesh.numberofvertices: 100 md.basalforcings.geothermalflux=numpy.zeros((md.mesh.numberofvertices, 1))100 md.basalforcings.geothermalflux=numpy.zeros((md.mesh.numberofvertices,)) 101 101 else: 102 102 print " no thermal boundary conditions created: no observed temperature found"
Note:
See TracChangeset
for help on using the changeset viewer.