Changeset 297
- Timestamp:
- Sep 14, 2004, 7:20:30 PM (21 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/HUSK.txt
r281 r297 1 1 2 Do data manager for non-smooth data + tests. Smooth is OK (7/9)2 Do data manager for non-smooth data + tests. Smooth is OK (7/9) 3 3 4 4 5 5 Perhaps control old/new style with minimum_allowed height 6 In any case get rid of old style.6 In any case get rid of old style. 7 7 Then optimise protect_against..... 8 8 -
inundation/ga/storm_surge/pyvolution/mesh.py
r291 r297 307 307 308 308 def build_boundary_dictionary(self, boundary = None): 309 """Build or inputthe dictionary of boundary tags.309 """Build or check the dictionary of boundary tags. 310 310 self.boundary is a dictionary of tags, 311 311 keyed by volume id and edge: … … 448 448 449 449 450 #Check that all vertices have been registered 451 for v in self.vertexlist: 452 msg = 'Some points do not belong to an element.\n' 453 msg += 'Make sure all points appear as element vertices!' 454 if v is None: 455 print 'WARNING (mesh.py): %s' %msg 456 break 457 458 #Should this warning be an exception? 459 #assert v is not None, msg 460 461 450 462 #Check integrity of neighbour structure 451 463 for i in range(N): -
inundation/ga/storm_surge/pyvolution/netherlands.py
r288 r297 93 93 N = 600 #Size = 720000 94 94 N = 220 95 N = 55 95 96 96 97 -
inundation/ga/storm_surge/pyvolution/quantity.py
r292 r297 295 295 #Go through all triangle, vertex pairs 296 296 #contributing to vertex k and register vertex value 297 contributions = [] 297 298 if L is None: continue #In case there are unused points 299 300 contributions = [] 298 301 for volume_id, vertex_id in L: 299 300 302 v = self.vertex_values[volume_id, vertex_id] 301 303 contributions.append(v) -
inundation/ga/storm_surge/pyvolution/test_mesh.py
r258 r297 80 80 #General tests: 81 81 82 #Test that points are arranged in a counter clock wise order 82 #Test that points are arranged in a counter clock wise order etc 83 83 mesh.check_integrity() 84 84 -
inundation/ga/storm_surge/pyvolution/test_quantity.py
r282 r297 26 26 elements = [ [1,0,2], [1,2,4], [4,2,5], [3,1,4] ] 27 27 28 self.mesh1 = Domain(points , [elements[0]])28 self.mesh1 = Domain(points[:3], [elements[0]]) 29 29 self.mesh1.check_integrity() 30 30
Note: See TracChangeset
for help on using the changeset viewer.