Changeset 765
- Timestamp:
- Jan 20, 2005, 5:19:34 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/quantity_ext.c
r752 r765 574 574 Py_DECREF(domain); 575 575 576 //qc = (PyArrayObject*) PyObject_GetAttrString(quantity, "centroid_values"); 577 //qv = (PyArrayObject*) PyObject_GetAttrString(quantity, "vertex_values"); 576 578 577 qc = get_consecutive_array(quantity, "centroid_values"); 579 578 qv = get_consecutive_array(quantity, "vertex_values"); … … 592 591 593 592 for (i=0; i<3; i++) { 594 n = (( int*) neighbours -> data)[k3+i];593 n = ((long*) neighbours -> data)[k3+i]; 595 594 if (n >= 0) { 596 595 qn = ((double*) qc -> data)[n]; //Neighbour's centroid value -
inundation/ga/storm_surge/pyvolution/test_quantity.py
r764 r765 900 900 #------------------------------------------------------------- 901 901 if __name__ == "__main__": 902 suite = unittest.makeSuite(TestCase,'test ')902 suite = unittest.makeSuite(TestCase,'test_limiter2') 903 903 #print "restricted test" 904 904 #suite = unittest.makeSuite(TestCase,'test_set_vertex_values_subset') -
inundation/ga/storm_surge/pyvolution/test_shallow_water.py
r761 r765 1199 1199 domain.order = 1 1200 1200 domain.distribute_to_vertices_and_edges() 1201 print L[1]1202 1201 assert allclose(L[1], val1) 1203 1202 … … 1205 1204 domain.order = 2 1206 1205 domain.distribute_to_vertices_and_edges() 1207 print L[1]1208 1206 assert allclose(L[1], [2.2, 4.9, 4.9]) 1209 1207 … … 2372 2370 #------------------------------------------------------------- 2373 2371 if __name__ == "__main__": 2374 suite = unittest.makeSuite(TestCase,'test _distribute_basic')2372 suite = unittest.makeSuite(TestCase,'test') 2375 2373 #suite = unittest.makeSuite(TestCase,'test_boundary_conditionsII') 2376 2374 runner = unittest.TextTestRunner()
Note: See TracChangeset
for help on using the changeset viewer.