Changeset 9025
- Timestamp:
- Nov 18, 2013, 3:03:23 PM (11 years ago)
- Location:
- trunk/anuga_core/source/anuga/operators
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/operators/run_rate_spatial_operator.py
r8944 r9025 141 141 """ 142 142 if t<=4.0: 143 return (x+y) 143 return (x+y)*0.0 144 144 else: 145 return 0 *x145 return 0.0*x 146 146 147 147 factor = 1e-3 … … 169 169 170 170 print indent + 'Integral = ', height.get_integral() 171 172 173 171 print indent + 'Exact accumultion = ', accum 172 174 173 dd = max(min(yieldstep,5.0-t),0.0) 175 174 accum += (Q1+Q2)*yieldstep + dd*Q3 … … 179 178 180 179 180 -
trunk/anuga_core/source/anuga/operators/run_set_stage.py
r9024 r9025 29 29 domain = anuga.rectangular_cross_domain(int(L/dx), int(W/dy), L, W, (-L/2.0, -W/2.0)) 30 30 31 32 print domain.starttime33 31 34 32 domain.set_name()
Note: See TracChangeset
for help on using the changeset viewer.