Changeset 8269


Ignore:
Timestamp:
Dec 6, 2011, 9:27:40 PM (11 years ago)
Author:
steve
Message:

updaated command line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel/run_sww_merge.py

    r8268 r8269  
    2121    parser.add_argument('-f', type=str, default="domain",
    2222                   help='base sww file name')
    23     parser.add_argument('-v', type=bool, default=False,
     23    parser.add_argument('-v', nargs='?', type=bool, const=True, default=False,
    2424                   help='verbosity')
    2525
     
    3232    #print np
    3333    #print filebase
    34     #print verbose
     34    print verbose
    3535   
    3636
    3737
    3838    output = filebase+".sww"
    39     swwfiles = [ filebase+"P_"+str(np)+"_"+str(v)+".sww" for v in range(np)]
     39    swwfiles = [ filebase+"_P"+str(v)+"_"+str(np)+".sww" for v in range(np)]
    4040
     41    print swwfiles
     42   
    4143    try:
    4244        sww_merge(swwfiles, output, verbose)
Note: See TracChangeset for help on using the changeset viewer.