Changeset 13910
- Timestamp:
- 11/08/12 12:11:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mesh/bamg.py
r13857 r13910 10 10 from MatlabFuncs import * 11 11 from BamgMesher import * 12 from ContourToNodes import * 12 13 13 14 def bamg(md,*args): … … 91 92 #Checks that all holes are INSIDE the principle domain outline 92 93 if i: 93 flags=ContourToNodes(domaini['x'] ,domaini['y'],domain[0],0)94 flags=ContourToNodes(domaini['x'].reshape(-1,1),domaini['y'].reshape(-1,1),domainfile,0) 94 95 if numpy.any(numpy.logical_not(flags)): 95 96 raise RuntimeError("bamg error message: All holes should be strictly inside the principal domain") … … 117 118 118 119 #detect whether all points of the rift are inside the domain 119 flags=ContourToNodes(rifti['x'] ,rifti['y'],domain[0],0)120 flags=ContourToNodes(rifti['x'].reshape(-1,1),rifti['y'].reshape(-1,1),domain[0],0) 120 121 if numpy.all(numpy.logical_not(flags)): 121 122 raise RuntimeError("one rift has all its points outside of the domain outline")
Note:
See TracChangeset
for help on using the changeset viewer.