Changeset 3042


Ignore:
Timestamp:
Jun 1, 2006, 4:29:03 PM (18 years ago)
Author:
ole
Message:

Moved mesh generation so that it only takes place if create mesh is storing to file.
Otherwise mesh object is returned to caller.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/mesh_interface.py

    r3038 r3042  
    147147            region.setMaxArea(res)
    148148           
    149     m.generate_mesh(minimum_triangle_angle=minimum_triangle_angle,
    150                     maximum_triangle_area=maximum_triangle_area)
    151149
    152150    if filename is None:
    153151        return m
    154152    else:
     153        m.generate_mesh(minimum_triangle_angle=minimum_triangle_angle,
     154                        maximum_triangle_area=maximum_triangle_area)       
    155155        m.export_mesh_file(filename)
    156156
Note: See TracChangeset for help on using the changeset viewer.