Changeset 2601 for inundation/pyvolution/domain.py
- Timestamp:
- Mar 27, 2006, 1:54:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/domain.py
r2569 r2601 14 14 from generic_boundary_conditions import Time_boundary 15 15 from generic_boundary_conditions import Transmissive_boundary 16 from pmesh2domain import _pmesh_to_domain 16 17 17 18 import types … … 19 20 class Domain(Mesh): 20 21 21 def __init__(self, coordinates, vertices, boundary = None, 22 conserved_quantities = None, other_quantities = None, 23 tagged_elements = None, geo_reference = None, 24 use_inscribed_circle=False): 22 def __init__(self, coordinates=None, vertices=None, 23 boundary=None, 24 conserved_quantities=None, other_quantities=None, 25 tagged_elements=None, geo_reference=None, 26 use_inscribed_circle=False, 27 mesh_file=None): 28 29 if mesh_file is not None: 30 coordinates, vertices, boundary, vertex_quantity_dict \ 31 ,tagged_elements, geo_reference = \ 32 _pmesh_to_domain(file_name=mesh_file) 33 # FIXME(DSG-DSG) have to do something with vertex_quantity_dict 25 34 26 35 Mesh.__init__(self, coordinates, vertices, boundary, … … 100 109 self.already_computed_flux = zeros((N, 3), Int) 101 110 111 if mesh_file is not None: 112 # If the mesh file passed any quantity values 113 # , initialise with these values. 114 self.set_quantity_vertices_dict(vertex_quantity_dict) 115 116 102 117 103 118 def set_default_order(self, n):
Note: See TracChangeset
for help on using the changeset viewer.