Changeset 469
- Timestamp:
- Oct 29, 2004, 4:51:15 PM (21 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/domain.py
r462 r469 224 224 225 225 def set_region(self, functions): 226 for tag in self.tagged_elements.keys(): 227 for function in functions: 228 print "tag",tag 229 print "function",function 226 # The order of functions in the list is used. 227 for function in functions: 228 for tag in self.tagged_elements.keys(): 230 229 function(tag, self.tagged_elements[tag], self) 231 230 -
inundation/ga/storm_surge/pyvolution/test_domain.py
r459 r469 11 11 def add_to_verts(tag, elements, domain): 12 12 if tag == "mound": 13 print "Selected"13 domain.test = "Mound" 14 14 15 15 … … 326 326 domain.set_region([add_to_verts]) 327 327 328 self.failUnless( domain.test == "Mound", 329 'set region failed') 330 328 331 #------------------------------------------------------------- 329 332 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.