Changeset 262 for inundation/ga/storm_surge/pyvolution/test_quantity.py
- Timestamp:
- Sep 1, 2004, 5:26:59 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/test_quantity.py
r261 r262 194 194 quantity.set_values([2.0, 4.0, 8.0, 2.0], 195 195 location = 'centroids') 196 196 197 198 197 199 #Gradients 198 200 a, b = quantity.compute_gradients() 199 200 201 201 202 #gradient bewteen t0 and t1 is undefined as det==0 … … 209 210 210 211 quantity.extrapolate_second_order() 211 212 213 #print quantity.vertex_values 212 214 assert allclose(quantity.vertex_values, [[2., 2., 2.], 213 215 [0., 6., 6.], … … 215 217 [0., 0., 6.]]) 216 218 217 218 219 219 220 def test_second_order_extrapolation2(self): 220 221 quantity = Conserved_quantity(self.mesh4)
Note: See TracChangeset
for help on using the changeset viewer.