Changeset 4051


Ignore:
Timestamp:
Dec 4, 2006, 12:10:51 PM (17 years ago)
Author:
duncan
Message:

minor changes

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  
    44Ole Nielsen and Duncan Gray, GA - 2006
    55
     6To run:
     7Do
     8lamboot -v ./.machines
    69
    7 Issues
    8 If running this is hand-set-up parallel, the python files are overwritten.
     10e.g.
     11miprun -c 4 python parallel_run_dam.py
     12
     13or
     14e.g.
     15miprun c4-8 python parallel_run_dam.py
     16
    917
    1018"""
  • anuga_work/development/friction_UA_flume_2006/run_dam.py

    r4047 r4051  
    99
    1010"""
    11 
    12 
    1311#----------------------------------------------------------------------------
    1412# Import necessary modules
     
    2220from os import path, sep
    2321from os.path import dirname  #, basename
    24 
    25 
    26 #import pypar
    2722
    2823# Related major packages
     
    4944        yieldstep = 0.01
    5045        finaltime = 31
    51        
    52 
    53 #     rank = pypar.rank()  #My id
    54 #     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 this
    59 #         for i in range(500):
    60 #             pass       
    61 #         pro_instance = project.Project(['data','flumes','dam_2006'],
    62 #                                        outputdir_name=outputdir_name)
    6346           
    6447    pro_instance = project.Project(['data','flumes','dam_2006'],
     
    154137              ]
    155138
    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 #               ]
    162139
    163140    #-------------------------------------------------------------------------
     
    175152#-------------------------------------------------------------
    176153if __name__ == "__main__":
    177  #    rank = pypar.rank()  #My id
    178 #     size = pypar.size() #Number of MPI processes
    179 #     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 
    186154     frictions = [0.04]
    187155     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')
    189157
    190    # 0.0 -15
    191    # 0.01 -
    192    # 0.0125 -8
    193    # 0.015
    194    # 0.016 - 1
    195    # 0.017
    196    # 0.018 - 9
    197    # 0.019
    198    # 0.02 - 4
    199    # 0.0225 - 1
    200    # 0.025 - 4
    201    # 0.0275 - 17
    202    # 0.03
    203    # 0.0325 - 17
    204    # 0.035 - 10
    205    # 0.0375
    206    # 0.04
    207 
    208    #Let's do it again..friction_UA_2
    209    # 0.017 -15
    210    # 0.02
    211    # 0.015 -8
    212    # 0.019
    213    # 0.0225 -1
    214    # 0.03
    215    # 0.04 -9
Note: See TracChangeset for help on using the changeset viewer.