Changeset 268
- Timestamp:
- Sep 2, 2004, 3:40:28 AM (21 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/config.py
r259 r268 62 62 63 63 use_psyco = True #Use psyco optimisations 64 use_psyco = False #Do not use psyco optimisations64 #use_psyco = False #Do not use psyco optimisations 65 65 66 66 -
inundation/ga/storm_surge/pyvolution/run_profile.py
r244 r268 2 2 3 3 This version is for profiling 4 4 (The original) 5 5 """ 6 6 -
inundation/ga/storm_surge/pyvolution/shallow_water.py
r267 r268 37 37 self.forcing_terms.append(manning_friction) 38 38 39 #Fixme: Perhaps establish shortcuts tp relevant quantities 40 #once and for all (for efficiency) 39 #Establish shortcuts to relevant quantities (for efficiency) 40 self.w = self.quantities['level'] 41 self.uh = self.quantities['xmomentum'] 42 self.vh = self.quantities['ymomentum'] 43 self.z = self.quantities['elevation'] 44 self.eta = self.quantities['friction'] 45 41 46 42 47 def check_integrity(self): … … 334 339 Xmom.explicit_update, 335 340 Ymom.explicit_update) 336 341 337 342 338 343 #################################### … … 352 357 for name in domain.conserved_quantities: 353 358 Q = domain.quantities[name] 354 Q.interpolate_from_vertices_to_edges() 355 359 Q.interpolate_from_vertices_to_edges() 360 361 #domain.w.interpolate_from_vertices_to_edges() 362 #domain.uh.interpolate_from_vertices_to_edges() 363 #domain.vh.interpolate_from_vertices_to_edges() 364 356 365 357 366 … … 373 382 if hc[k] < 0.0: 374 383 #Control level and height 375 wc[k] = zc[k] ; hc[k] = 0.0384 wc[k] = zc[k] #; hc[k] = 0.0 376 385 377 386 #Control momentum … … 380 389 if hc[k] < 0.0: 381 390 #Control level and height 382 wc[k] = zc[k] ; hc[k] = 0.0391 wc[k] = zc[k] #; hc[k] = 0.0 383 392 384 393 #Control momentum
Note: See TracChangeset
for help on using the changeset viewer.