Changeset 4804


Ignore:
Timestamp:
Nov 9, 2007, 4:33:30 PM (16 years ago)
Author:
ole
Message:

Made order of tests predictable across platforms.
Improved comments in polygon_ext.c
Bug fix in runcairns

Location:
anuga_core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/demos/cairns/runcairns.py

    r4100 r4804  
    106106domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
    107107domain.set_minimum_storable_height(0.01)
     108
     109#print 'domain.tight_slope_limiters', domain.tight_slope_limiters
     110domain.tight_slope_limiters = 0
     111print 'domain.tight_slope_limiters', domain.tight_slope_limiters
     112
    108113
    109114
  • anuga_core/source/anuga/test_all.py

    r4796 r4804  
    6161            path_files.append(file)
    6262            print  file + ',',
    63             more_test_files, more_path_files =get_test_files(absolute_filename)
     63            more_test_files, more_path_files =\
     64                             get_test_files(absolute_filename)
     65           
    6466            test_files += more_test_files
    6567            path_files += more_path_files
     
    6870        else:
    6971            pass
    70     return test_files , path_files
     72       
     73    return test_files, path_files
    7174
    7275
     
    7679    print 'Recursing into;'
    7780    test_files, path_files = get_test_files(path)
     81
    7882    files = [x for x in test_files if not x == 'test_all.py']
     83
     84    files.sort() # Ensure same order on all platforms
     85   
    7986    print
    8087    print
     
    102109    moduleNames = map(filenameToModuleName, files)
    103110    modules = map(__import__, moduleNames)
     111   
    104112    # Fix up the system path
    105113    for file in path_files:
    106114        sys.path.remove(file)
     115       
    107116    load = unittest.defaultTestLoader.loadTestsFromModule
    108117    testCaseClasses = map(load, modules)
  • anuga_core/source/anuga/utilities/polygon_ext.c

    r3730 r4804  
    1010// Ole Nielsen, GA 2004
    1111//
    12 //NOTE: On 64 bit systems use long* instead of int* for Numeric arrays
    13 //this will also work on 32 bit systems
     12// NOTE: We use long* instead of int* for Numeric arrays as this will work both
     13//       for 64 as well as 32 bit systems
    1414
    1515
Note: See TracChangeset for help on using the changeset viewer.