Ignore:
Timestamp:
Oct 18, 2008, 9:13:18 PM (16 years ago)
Author:
steve
Message:

Changed parallel_api so that global mesh only needs to
be constructed on processor 0

Location:
anuga_core/source/pypar-numeric/mandelbrot_example
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/pypar-numeric/mandelbrot_example/compile.py

    r5779 r5847  
    149149    if os.name == 'posix' and os.uname()[4] == 'x86_64':
    150150      #Extra flags for 64 bit architectures
    151       #s += ' -fPIC -m64' #gcc
    152       s += ' -fPIC -tp amd64' #pgcc
     151      s += ' -fPIC -m64' #gcc
     152      #s += ' -fPIC -tp amd64' #pgcc
    153153     
    154154   
  • anuga_core/source/pypar-numeric/mandelbrot_example/mandel_sequential.py

    r5779 r5847  
    1212# User definable parameters
    1313kmax = 2**15  # Maximal number of iterations (=number of colors)
    14 M = N = 700   # width = height = N (200, 400, 600, 700 are good)
     14M = N = 200   # width = height = N (200, 400, 600, 700 are good)
    1515
    1616# Region in complex plane
  • anuga_core/source/pypar-numeric/mandelbrot_example/mandelplot.py

    r5779 r5847  
    1818    """
    1919   
    20     from Tkinter import Frame, Canvas, TOP, NW, PhotoImage
     20    #from Tkinter import Frame, Canvas, TOP, NW, PhotoImage
     21    from pylab import imshow, show
    2122    from Numeric import transpose, Float
    22     from Image import new             # PIL   
     23    #from Image import new             # PIL   
    2324    import time
    2425
     
    2728    # User definable parameters
    2829
    29     imtype = 'ppm'      # Image format (e.g 'ppm', 'bmp', 'tiff')
    30     filename ='mandel'  # Base filename
     30    #imtype = 'ppm'      # Image format (e.g 'ppm', 'bmp', 'tiff')
     31    #filename ='mandel'  # Base filename
    3132   
    3233    exponent = 0.998    # Exponent for morphing colors, good with kmax = 2**15
     
    4748    A = transpose(A).astype(Float)         
    4849
    49     im = new("RGB", A.shape)
     50    #im = new("RGB", A.shape)
    5051
    5152   
     
    7879   
    7980    # Save image to file       
    80     im.putdata(L)
    81     im.save(filename + '.' + imtype, imtype)
     81    imshow(A)
     82    show()
     83   
     84    #im.save(filename + '.' + imtype, imtype)
    8285    print 'Computed plot in %.2f seconds: ' %(time.time()-t0)
    8386
     
    8891    #   sys.exit()
    8992       
    90     import os
    91     os.system('xv %s' %(filename + '.' + imtype))
     93    #import os
     94    #os.system('xv %s' %(filename + '.' + imtype))
    9295
    9396
Note: See TracChangeset for help on using the changeset viewer.