Changeset 1550


Ignore:
Timestamp:
Jun 28, 2005, 3:19:07 PM (19 years ago)
Author:
linda
Message:

Deleted linda_dummy.py

Location:
inundation/ga/storm_surge/parallel
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/parallel/run_parallel_mesh.py

    r1520 r1550  
    11#!/usr/bin/env python
    22#########################################################
    3 #
     3#   
    44#  Main file for parallel mesh testing.
    5 #
     5# 
    66#  This is a modification of the run_parallel_advection.py
    77# file.
     
    1212# required to build the grid, i.e. a higher number
    1313# corresponds to a finer grid. The term infront of the c
    14 # corresponds to the number of processors.
     14# corresponds to the number of processors. 
    1515#
    1616# *) The (new) files that have been added to manage the
     
    4444#
    4545#
    46 #
     46# 
    4747#########################################################
    4848
     
    101101print 'after trace'
    102102
     103
    103104if myid == 0:
    104105
    105106    # read in the test files
    106 
    107     f=open('test_3l_1c.out', 'r')
     107   
     108    f=open('test_3l_2c.out', 'r')
    108109    [nodes, triangles, boundary, triangles_per_proc] = mg2ga(f)
    109110
    110111    # subdivide the mesh
    111 
     112   
    112113    submesh = build_submesh(nodes, triangles, boundary, triangles_per_proc)
    113114
    114115    # send the mesh partition to the appropriate processor
    115 
     116   
    116117    for p in range(numprocs):
    117118      send_submesh(submesh, triangles_per_proc, tagmap, p)
     
    120121# processor (note that the information is in the
    121122# correct form for the GA data structure
    122 
    123123
    124124[points, vertices, boundary, ghost_recv_dict, full_send_dict] = rec_submesh(tagmap, 0)
     
    131131# start the initialisation routines
    132132
    133 #rect = [ 0.0, 0.0, 1.0, 1.0]
    134133domain.initialise_visualiser()
    135 #domain.visualise=True
    136 
     134#domain.visualise=False
     135 
    137136#Boundaries
    138137
     
    162161    import time
    163162    t0 = time.time()
    164 
    165 
    166163for t in domain.evolve(yieldstep = 0.1, finaltime = 2.0):
    167164    if myid == 0:
    168         domain.write_time()
    169 
    170 
     165      domain.write_time()
    171166if myid == 0:
    172167    print 'That took %.2f seconds' %(time.time()-t0)
     
    174169    print 'Reduction Communication time %.2f seconds'%domain.communication_reduce_time
    175170
    176 
     171 
    177172print "`````````````````````````````"
    178173pypar.finalize()
Note: See TracChangeset for help on using the changeset viewer.