Changeset 765


Ignore:
Timestamp:
Jan 20, 2005, 5:19:34 PM (20 years ago)
Author:
ole
Message:

Quashed last 64 bit bug (changed int* to long* in integer arrays)

Location:
inundation/ga/storm_surge/pyvolution
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/quantity_ext.c

    r752 r765  
    574574  Py_DECREF(domain);     
    575575
    576   //qc = (PyArrayObject*) PyObject_GetAttrString(quantity, "centroid_values");
    577   //qv = (PyArrayObject*) PyObject_GetAttrString(quantity, "vertex_values");   
     576
    578577  qc = get_consecutive_array(quantity, "centroid_values");
    579578  qv = get_consecutive_array(quantity, "vertex_values");   
     
    592591   
    593592    for (i=0; i<3; i++) {
    594       n = ((int*) neighbours -> data)[k3+i];
     593      n = ((long*) neighbours -> data)[k3+i];
    595594      if (n >= 0) {
    596595        qn = ((double*) qc -> data)[n]; //Neighbour's centroid value
  • inundation/ga/storm_surge/pyvolution/test_quantity.py

    r764 r765  
    900900#-------------------------------------------------------------
    901901if __name__ == "__main__":
    902     suite = unittest.makeSuite(TestCase,'test')
     902    suite = unittest.makeSuite(TestCase,'test_limiter2')
    903903    #print "restricted test"
    904904    #suite = unittest.makeSuite(TestCase,'test_set_vertex_values_subset')
  • inundation/ga/storm_surge/pyvolution/test_shallow_water.py

    r761 r765  
    11991199        domain.order = 1       
    12001200        domain.distribute_to_vertices_and_edges()
    1201         print L[1]       
    12021201        assert allclose(L[1], val1)
    12031202       
     
    12051204        domain.order = 2       
    12061205        domain.distribute_to_vertices_and_edges()
    1207         print L[1]
    12081206        assert allclose(L[1], [2.2, 4.9, 4.9])
    12091207               
     
    23722370#-------------------------------------------------------------
    23732371if __name__ == "__main__":
    2374     suite = unittest.makeSuite(TestCase,'test_distribute_basic')
     2372    suite = unittest.makeSuite(TestCase,'test')
    23752373    #suite = unittest.makeSuite(TestCase,'test_boundary_conditionsII')
    23762374    runner = unittest.TextTestRunner()
Note: See TracChangeset for help on using the changeset viewer.