Changeset 13910


Ignore:
Timestamp:
11/08/12 12:11:30 (12 years ago)
Author:
cborstad
Message:

BUG: reshape arrays for call to ContourToNodes and pass only filename since OrderedDict is not yet supported in FetchData

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/bamg.py

    r13857 r13910  
    1010from MatlabFuncs import *
    1111from BamgMesher import *
     12from ContourToNodes import *
    1213
    1314def bamg(md,*args):
     
    9192                        #Checks that all holes are INSIDE the principle domain outline
    9293                        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)
    9495                                if numpy.any(numpy.logical_not(flags)):
    9596                                        raise RuntimeError("bamg error message: All holes should be strictly inside the principal domain")
     
    117118
    118119                                #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)
    120121                                if numpy.all(numpy.logical_not(flags)):
    121122                                        raise RuntimeError("one rift has all its points outside of the domain outline")
Note: See TracChangeset for help on using the changeset viewer.