Changeset 1851


Ignore:
Timestamp:
Sep 23, 2005, 9:39:21 AM (19 years ago)
Author:
ole
Message:

Removed strict dependency on RandomArray?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pypar/pytiming

    r123 r1851  
    1919#--------------------------------------------------------------
    2020
    21 method = 2     # Use
    22                   # 0: automatically allocated buffers
    23                   # 1: user-supplied buffers
    24                   # 2: Use bypass - let pypar use direct mpi_ext call
    25                   # 3: direct call to mpiext (with buffers),
    26                   #    only fractionally better than bypass
     21method = 2   # Use
     22             # 0: automatically allocated buffers
     23             # 1: user-supplied buffers
     24             # 2: Use bypass - let pypar use direct mpi_ext call
     25             # 3 (not there): direct call to mpiext (with buffers),
     26             #    only fractionally better than bypass
    2727                 
    2828vanilla = False  # Force use of vanilla format (1)
     
    101101#Initialise data and timings
    102102#
    103 from RandomArray import uniform, seed
    104 seed(17, 53)
    105 A = uniform(0.0,100.0,MAXM)
     103
     104try:
     105  from RandomArray import uniform, seed
     106  seed(17, 53)
     107  A = uniform(0.0,100.0,MAXM)
     108except:
     109  print 'problem with RandomArray'
     110  from Numeric import ones, Float
     111  A = ones( MAXM, Float )
     112 
    106113elsize = A.itemsize()
    107114#print elsize
Note: See TracChangeset for help on using the changeset viewer.