Changeset 4051 for anuga_work/development/friction_UA_flume_2006
- Timestamp:
- Dec 4, 2006, 12:10:51 PM (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/parallel_run_dam.py
r4048 r4051 4 4 Ole Nielsen and Duncan Gray, GA - 2006 5 5 6 To run: 7 Do 8 lamboot -v ./.machines 6 9 7 Issues 8 If running this is hand-set-up parallel, the python files are overwritten. 10 e.g. 11 miprun -c 4 python parallel_run_dam.py 12 13 or 14 e.g. 15 miprun c4-8 python parallel_run_dam.py 16 9 17 10 18 """ -
anuga_work/development/friction_UA_flume_2006/run_dam.py
r4047 r4051 9 9 10 10 """ 11 12 13 11 #---------------------------------------------------------------------------- 14 12 # Import necessary modules … … 22 20 from os import path, sep 23 21 from os.path import dirname #, basename 24 25 26 #import pypar27 22 28 23 # Related major packages … … 49 44 yieldstep = 0.01 50 45 finaltime = 31 51 52 53 # rank = pypar.rank() #My id54 # if 0 == rank:55 # pro_instance = project.Project(['data','flumes','dam_2006'],56 # outputdir_name=outputdir_name)57 # else:58 # # wait for a bit..I don't know if I need this59 # for i in range(500):60 # pass61 # pro_instance = project.Project(['data','flumes','dam_2006'],62 # outputdir_name=outputdir_name)63 46 64 47 pro_instance = project.Project(['data','flumes','dam_2006'], … … 154 137 ] 155 138 156 # points = [[gate_position - 0.65,0.2],157 # [gate_position - 0.55,0.2],158 # [gate_position - 0.45,0.2],159 # [gate_position - 0.35,0.2],160 # [gate_position - 0.25,0.2]161 # ]162 139 163 140 #------------------------------------------------------------------------- … … 175 152 #------------------------------------------------------------- 176 153 if __name__ == "__main__": 177 # rank = pypar.rank() #My id178 # size = pypar.size() #Number of MPI processes179 # node = pypar.get_processor_name()180 # frictions = [0.0, 0.01, 0.0125]181 # for i, friction in enumerate(frictions):182 # if i%size == rank:183 # print "I am processor %d of %d on node %s" %(rank, size, node)184 # #main(friction, is_trial_run = True, outputdir_name='friction_UA')185 186 154 frictions = [0.04] 187 155 for i, friction in enumerate(frictions): 188 main(friction, is_trial_run = False, outputdir_name='friction_UA_2')156 main(friction, is_trial_run = True, outputdir_name='friction_UA_2') 189 157 190 # 0.0 -15191 # 0.01 -192 # 0.0125 -8193 # 0.015194 # 0.016 - 1195 # 0.017196 # 0.018 - 9197 # 0.019198 # 0.02 - 4199 # 0.0225 - 1200 # 0.025 - 4201 # 0.0275 - 17202 # 0.03203 # 0.0325 - 17204 # 0.035 - 10205 # 0.0375206 # 0.04207 208 #Let's do it again..friction_UA_2209 # 0.017 -15210 # 0.02211 # 0.015 -8212 # 0.019213 # 0.0225 -1214 # 0.03215 # 0.04 -9
Note: See TracChangeset
for help on using the changeset viewer.