Changeset 5500 for anuga_work/production/perth/run_perth.py
- Timestamp:
- Jul 14, 2008, 1:15:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/run_perth.py
r5442 r5500 34 34 from anuga.pmesh.mesh_interface import create_mesh_from_regions 35 35 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters 36 from anuga_parallel.parallel_api import distribute, numprocs, myid, barrier36 #from anuga_parallel.parallel_api import distribute, numprocs, myid, barrier 37 37 from anuga_parallel.parallel_abstraction import get_processor_name 38 38 from anuga.caching import myhash … … 42 42 # Application specific imports 43 43 import project # Definition of file names and polygons 44 numprocs = 1 45 myid = 0 44 46 45 47 def run_model(**kwargs): … … 62 64 store_parameters(**kwargs) 63 65 64 barrier()66 # barrier() 65 67 66 68 start_screen_catcher(kwargs['output_dir'], myid, numprocs) … … 95 97 use_cache=True, 96 98 verbose=True) 97 barrier()99 # barrier() 98 100 99 101 … … 135 137 alpha = kwargs['alpha']) 136 138 print 'Finished Set quantity' 137 barrier()139 #barrier() 138 140 139 141 … … 177 179 domain.set_boundary({'back': Br, 178 180 'side': Bd, 179 'ocean': B f})181 'ocean': Bd}) #change to Bf for real run 180 182 181 183 ## if project.source != 'test': … … 210 212 if myid==0: 211 213 store_parameters(**kwargs) 212 barrier214 # barrier 213 215 214 216 print 'memory usage before del domain1',mem_usage() … … 228 230 229 231 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' 231 233 # kwargs['elevation_file']=project.combined_small_dir_name + '.pts' 232 234 kwargs['boundary_file']=project.boundaries_in_dir_name + '.sww' … … 248 250 if myid==0: 249 251 export_model(**kwargs) 250 barrier252 #barrier
Note: See TracChangeset
for help on using the changeset viewer.