Changeset 4420


Ignore:
Timestamp:
Apr 24, 2007, 10:32:54 AM (17 years ago)
Author:
duncan
Message:

check in current scenario

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  
    6363              outputdir_name=None,
    6464              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    """
    6670    if is_trial_run is True:
    6771        outputdir_name += '_test'
    6872    if pro_instance is None:
    69         pro_instance = project.Project(['data','flumes','dam_2006'],
     73        pro_instance = project.Project(['data','flumes','dam_2007'],
    7074                                       outputdir_name=outputdir_name)
    7175   
     
    108112                                      interpolation_points = gauge_locations,
    109113                                      verbose = True,
    110                                       use_cache = True)
     114                                      use_cache = False)
    111115        # file_instance(0.02, point_id=0) #This works
    112116        norm_sum = 0
     
    141145if __name__ == "__main__":
    142146    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',
    145149        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',
    147151        max_time=None)
    148152
  • anuga_work/development/friction_UA_flume_2006/parallel_run_dam.py

    r4405 r4420  
    204204                 0.019, 0.02,
    205205                 0.0225, 0.025, 0.03, 0.035, 0.04] # 17 processes
    206     frictions = [0.0, 0.014]
     206    #frictions = [0.0, 0.014]
    207207    for i, friction in enumerate(frictions):
    208208        if i%size == rank:
    209209            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.