Changeset 3715 for anuga_core/source/anuga/pmesh/mesh_interface.py
- Timestamp:
- Oct 9, 2006, 4:46:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/pmesh/mesh_interface.py
r3689 r3715 62 62 unintended resolutions. 63 63 64 """ 65 66 # Build arguments and keyword arguments for use with caching or apply. 67 args = (bounding_polygon, 68 boundary_tags) 69 70 kwargs = {'maximum_triangle_area': maximum_triangle_area, 71 'filename': filename, 72 'interior_regions': interior_regions, 73 'poly_geo_reference': poly_geo_reference, 74 'mesh_geo_reference': mesh_geo_reference, 75 'minimum_triangle_angle': minimum_triangle_angle, 76 'verbose': verbose} # FIXME (Ole): Should be bypassed one day 77 78 79 #print 'kwargs', kwargs 80 81 # Call underlying engine with or without caching 82 if use_cache is True: 83 try: 84 from caching import cache 85 except: 86 msg = 'Caching was requested, but caching module'+\ 87 'could not be imported' 88 raise msg 89 90 91 res = cache(_create_mesh_from_regions, 92 args, kwargs, 93 verbose=verbose, 94 compression=False) 95 else: 96 res = apply(_create_mesh_from_regions, 97 args, kwargs) 98 99 return res 100 101 102 103 def _create_mesh_from_regions(bounding_polygon, 104 boundary_tags, 105 maximum_triangle_area=None, 106 filename=None, 107 interior_regions=None, 108 poly_geo_reference=None, 109 mesh_geo_reference=None, 110 minimum_triangle_angle=28.0, 111 verbose=True): 112 """_create_mesh_from_regions - internal function. 113 114 See create_mesh_from_regions for documentation. 64 115 """ 65 116 #FIXME (OLE-DSG) … … 164 215 m.export_mesh_file(filename) 165 216 166
Note: See TracChangeset
for help on using the changeset viewer.