Changeset 13992
- Timestamp:
- 11/20/12 15:04:57 (12 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/flowequation.py
r13951 r13992 37 37 string=' flow equation parameters:' 38 38 39 string="%s\n\n%s"%(string,fielddisplay(self,'ismacayealpattyn', 'is the macayeal or pattyn approximation used ?'))40 string="%s\n%s"%(string,fielddisplay(self,'ishutter', 'is the shallow ice approximation used ?'))41 string="%s\n%s"%(string,fielddisplay(self,'isl1l2', 'are l1l2 equations used ?'))42 string="%s\n%s"%(string,fielddisplay(self,'isstokes', 'are the Full-Stokes equations used ?'))43 string="%s\n%s"%(string,fielddisplay(self,'vertex_equation', 'flow equation for each vertex'))44 string="%s\n%s"%(string,fielddisplay(self,'element_equation', 'flow equation for each element'))45 string="%s\n%s"%(string,fielddisplay(self,'bordermacayeal', 'vertices on MacAyeal''s border (for tiling)'))46 string="%s\n%s"%(string,fielddisplay(self,'borderpattyn', 'vertices on Pattyn''s border (for tiling)'))47 string="%s\n%s"%(string,fielddisplay(self,'borderstokes', 'vertices on Stokes'' border (for tiling)'))39 string="%s\n\n%s"%(string,fielddisplay(self,'ismacayealpattyn',"is the macayeal or pattyn approximation used ?")) 40 string="%s\n%s"%(string,fielddisplay(self,'ishutter',"is the shallow ice approximation used ?")) 41 string="%s\n%s"%(string,fielddisplay(self,'isl1l2',"are l1l2 equations used ?")) 42 string="%s\n%s"%(string,fielddisplay(self,'isstokes',"are the Full-Stokes equations used ?")) 43 string="%s\n%s"%(string,fielddisplay(self,'vertex_equation',"flow equation for each vertex")) 44 string="%s\n%s"%(string,fielddisplay(self,'element_equation',"flow equation for each element")) 45 string="%s\n%s"%(string,fielddisplay(self,'bordermacayeal',"vertices on MacAyeal's border (for tiling)")) 46 string="%s\n%s"%(string,fielddisplay(self,'borderpattyn',"vertices on Pattyn's border (for tiling)")) 47 string="%s\n%s"%(string,fielddisplay(self,'borderstokes',"vertices on Stokes' border (for tiling)")) 48 48 return string 49 49 #}}} -
issm/trunk-jpl/src/m/geometry/FlagElements.py
r13991 r13992 44 44 xlim,ylim=basinzoom('basin',region) 45 45 flag_nodes=numpy.logical_and(numpy.logical_and(md.mesh.x<xlim[1],md.mesh.x>xlim[0]),numpy.logical_and(md.mesh.y<ylim[1],md.mesh.y>ylim[0])) 46 flag=numpy.prod(flag_nodes[md.mesh.elements] .astype(float),axis=1).astype(bool)46 flag=numpy.prod(flag_nodes[md.mesh.elements],axis=1).astype(bool) 47 47 else: 48 48 #ok, flag elements 49 [flag,dum]=ContourToMesh(md.mesh.elements[:,0:3] ,md.mesh.x.reshape(-1,1),md.mesh.y.reshape(-1,1),region,'element',1)49 [flag,dum]=ContourToMesh(md.mesh.elements[:,0:3].copy(),md.mesh.x.reshape(-1,1),md.mesh.y.reshape(-1,1),region,'element',1) 50 50 flag=flag.astype(bool) 51 51
Note:
See TracChangeset
for help on using the changeset viewer.