Changeset 8811


Ignore:
Timestamp:
Apr 5, 2013, 5:19:26 PM (12 years ago)
Author:
steve
Message:

Just getting rid of objgraph import from run_okushiri.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_validation_tests/Case_studies/Okushiri/run_okushiri.py

    r8810 r8811  
    5959    # Set simulation parameters
    6060    #-------------------------
    61     domain.set_name(project.output_filename)  # Name of output sww file
    62     domain.set_default_order(2)               # Apply second order scheme
     61    domain.set_name(project.output_filename)  # Name of output sww file
    6362    domain.set_minimum_storable_height(0.001) # Don't store w < 0.001m
    6463    #domain.set_quantities_to_be_monitored('stage')
     
    6968    # or override manually yourself
    7069    #------------------------------------------------------------------------------
    71     #from anuga.utilities.argparsing import parse_standard_args
    72     #alg, cfl = parse_standard_args()
    73     alg = '1_5'
    74     cfl = 1.0
     70    from anuga.utilities.argparsing import parse_standard_args
     71    alg, cfl = parse_standard_args()
    7572    domain.set_flow_algorithm(alg)
    7673    domain.set_CFL(cfl)
    7774   
    7875   
    79     domain.set_store(False)
     76    domain.set_store(True)
    8077       
    8178
     
    110107    t0 = time.time()
    111108
    112     for t in domain.evolve(yieldstep = 0.01, finaltime = 4.0):
    113         print 80*"="
     109    for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5):
    114110        domain.write_time()
    115         import objgraph
    116         #objgraph.show_most_common_types()
    117         #print objgraph.typestats(objgraph.get_leaking_objects())
    118         objgraph.show_growth()
    119         #print domain.quantity_statistics(precision='%.12f')
     111
    120112
    121113    print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset for help on using the changeset viewer.