Changeset 13493


Ignore:
Timestamp:
10/01/12 10:09:13 (12 years ago)
Author:
jschierm
Message:

FIX: Fixed typo and instance dictionary reference.

File:
1 edited

Legend:

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

    r13482 r13493  
    268268        #}}}
    269269        # Bamg Mesh parameters {{{
    270         if options.exist('domain') and md.mesh.numberofvertices and md.mesh.dimension==2:
     270        if not options.exist('domain') and md.mesh.numberofvertices and md.mesh.dimension==2:
    271271
    272272                if isinstance(md.private.bamg,dict) and 'mesh' in md.private.bamg:
    273                         bamg_mesh=bamgmesh(md.private.bamg['mesh'])
     273                        bamg_mesh=bamgmesh(md.private.bamg['mesh'].__dict__)
    274274                else:
    275275                        bamg_mesh.Vertices=numpy.hstack((md.mesh.x.reshape(-1,1),md.mesh.y.reshape(-1,1),numpy.ones((md.mesh.numberofvertices,1))))
Note: See TracChangeset for help on using the changeset viewer.