Changeset 1232
- Timestamp:
- Apr 18, 2005, 5:44:50 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution-parallel/domain.py
r1187 r1232 152 152 internal ordering. 153 153 154 155 156 154 #FIXME (Ole): I suggest the following interface 155 set_quantity(name, X, location, region) 156 where 157 157 name: Name of quantity 158 158 X: … … 322 322 """Output statistics about boundary forcing 323 323 324 325 """ 326 324 325 """ 326 327 327 if quantities is None: 328 328 quantities = self.conserved_quantities … … 344 344 v = q.boundary_values[i] 345 345 if minval is None or v < minval: minval = v 346 if maxval is None or v > maxval: maxval = v 346 if maxval is None or v > maxval: maxval = v 347 347 348 348 if minval is None or maxval is None: 349 349 print 'Sorry no information about tag %s' %tag 350 else: 350 else: 351 351 print ' Quantity %s, tag %s: min = %12.8f, max = %12.8f'\ 352 352 %(name, tag, minval, maxval) 353 354 355 356 357 358 359 360 361 353 354 355 356 357 358 359 360 361 362 362 363 363 def get_name(self): … … 412 412 if yieldstep is None: 413 413 yieldstep = max_timestep 414 414 else: 415 415 yieldstep = float(yieldstep) 416 416 … … 463 463 #Yield results 464 464 if finaltime is not None and abs(self.time - finaltime) < epsilon: 465 466 #FIXME: There is a rare situation where the 465 466 #FIXME: There is a rare situation where the 467 467 #final time step is stored twice. Can we make a test? 468 468 … … 637 637 except: 638 638 import os 639 if os.name == 'posix' and os.uname()[4] == 'x86_64': 639 if os.name == 'posix' and os.uname()[4] == 'x86_64': 640 640 pass 641 641 #Psyco isn't supported on 64 bit systems, but it doesn't matter
Note: See TracChangeset
for help on using the changeset viewer.