Changeset 4420
- Timestamp:
- Apr 24, 2007, 10:32:54 AM (18 years ago)
- Location:
- anuga_work/development/friction_UA_flume_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/friction_UA_flume_2006/calc_norm.py
r4405 r4420 63 63 outputdir_name=None, 64 64 pro_instance=None, 65 max_time=None): 65 max_time=None): 66 """ 67 Outputdir_name is directory where the sww files are. 68 The output text file name is based on the flume_name 69 """ 66 70 if is_trial_run is True: 67 71 outputdir_name += '_test' 68 72 if pro_instance is None: 69 pro_instance = project.Project(['data','flumes','dam_200 6'],73 pro_instance = project.Project(['data','flumes','dam_2007'], 70 74 outputdir_name=outputdir_name) 71 75 … … 108 112 interpolation_points = gauge_locations, 109 113 verbose = True, 110 use_cache = True)114 use_cache = False) 111 115 # file_instance(0.02, point_id=0) #This works 112 116 norm_sum = 0 … … 141 145 if __name__ == "__main__": 142 146 calc_norm( 143 'ensemble_average_h_smooth.csv',144 #'ensemble_average_h_rough.csv',147 #'ensemble_average_h_smooth.csv', 148 'ensemble_average_h_rough.csv', 145 149 is_trial_run = False, # adds _test to outputdir_name 146 outputdir_name=' friction_UA_stage_0.06',150 outputdir_name='UA_flume_built_from_scratch_0.06_stage', 147 151 max_time=None) 148 152 -
anuga_work/development/friction_UA_flume_2006/parallel_run_dam.py
r4405 r4420 204 204 0.019, 0.02, 205 205 0.0225, 0.025, 0.03, 0.035, 0.04] # 17 processes 206 frictions = [0.0, 0.014]206 #frictions = [0.0, 0.014] 207 207 for i, friction in enumerate(frictions): 208 208 if i%size == rank: 209 209 print "I am processor %d of %d on node %s" %(rank, size, node) 210 main(friction, is_trial_run = True,211 outputdir_name=' results')210 main(friction, is_trial_run = False, 211 outputdir_name='UA_flume_built_from_scratch_0.06_stage')
Note: See TracChangeset
for help on using the changeset viewer.