Changeset 5500


Ignore:
Timestamp:
Jul 14, 2008, 1:15:30 PM (11 years ago)
Author:
kristy
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/perth/run_perth.py

    r5442 r5500  
    3434from anuga.pmesh.mesh_interface import create_mesh_from_regions
    3535from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters
    36 from anuga_parallel.parallel_api import distribute, numprocs, myid, barrier
     36#from anuga_parallel.parallel_api import distribute, numprocs, myid, barrier
    3737from anuga_parallel.parallel_abstraction import get_processor_name
    3838from anuga.caching import myhash
     
    4242# Application specific imports
    4343import project                 # Definition of file names and polygons
     44numprocs = 1
     45myid = 0
    4446
    4547def run_model(**kwargs):
     
    6264        store_parameters(**kwargs)
    6365
    64     barrier()
     66   # barrier()
    6567
    6668    start_screen_catcher(kwargs['output_dir'], myid, numprocs)
     
    9597                             use_cache=True,
    9698                             verbose=True)
    97     barrier()
     99   # barrier()
    98100   
    99101
     
    135137                            alpha = kwargs['alpha'])
    136138        print 'Finished Set quantity'
    137     barrier()
     139    #barrier()
    138140
    139141
     
    177179    domain.set_boundary({'back': Br,
    178180                         'side': Bd,
    179                          'ocean': Bf})
     181                         'ocean': Bd}) #change to Bf for real run
    180182
    181183##    if project.source != 'test':
     
    210212    if myid==0:
    211213        store_parameters(**kwargs)
    212     barrier
     214   # barrier
    213215   
    214216    print 'memory usage before del domain1',mem_usage()
     
    228230   
    229231    kwargs['output_dir']=project.output_run_time_dir
    230     kwargs['elevation_file']=project.combined_dir_name+'.txt'
     232    kwargs['elevation_file']=project.combined_dir_name+'.pts'
    231233#    kwargs['elevation_file']=project.combined_small_dir_name + '.pts'
    232234    kwargs['boundary_file']=project.boundaries_in_dir_name + '.sww'
     
    248250    if myid==0:
    249251        export_model(**kwargs)
    250     barrier
     252    #barrier
Note: See TracChangeset for help on using the changeset viewer.