Ignore:
Timestamp:
Oct 24, 2006, 12:59:08 PM (18 years ago)
Author:
ole
Message:

Refactored references to domain.filename away.
Use

domain.set_name()
domain.get_name()

instead.

Location:
anuga_core/source/anuga/examples
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/examples/beach.py

    r3656 r3846  
    3737domain.default_order = 2
    3838print "Output being written to " + domain.get_datadir() + sep + \
    39       domain.filename + domain.format
     39      domain.get_name() + domain.format
    4040
    4141
  • anuga_core/source/anuga/examples/cornell_room.py

    r3565 r3846  
    7373else:
    7474    s = 'nonsmooth'       
    75 domain.filename = root + '_' + s
     75domain.set_name(root + '_' + s)
    7676
    7777#Set bed-slope and friction
  • anuga_core/source/anuga/examples/flatbed.py

    r3565 r3846  
    2525domain.set_name('polygons')
    2626print "Output being written to " + domain.get_datadir() + sep + \
    27               domain.filename + "_size%d." %len(domain) + domain.format
     27              domain.get_name() + "_size%d." %len(domain) + domain.format
    2828       
    2929
  • anuga_core/source/anuga/examples/netherlands.py

    r3842 r3846  
    126126    #FIXME: This was os.path.splitext but caused weird filenames based on root
    127127    base = os.path.basename(sys.argv[0])
    128     domain.filename, _ = os.path.splitext(base)
     128    basename, _ = os.path.splitext(base)
     129    domain.set_name(basename)
    129130else:
    130131    #domain.initialise_visualiser(rect=[0.0,0.0,1.0,1.0])
  • anuga_core/source/anuga/examples/pressure_force.py

    r3565 r3846  
    2424
    2525domain.store = True
    26 domain.filename = 'pressure'
     26domain.set_name('pressure')
    2727
    2828#######################
  • anuga_core/source/anuga/examples/run_gong.py

    r3535 r3846  
    6363        file_path, filename = path.split(filename)
    6464        filename, ext = path.splitext(filename)
    65         domain.filename = filename + '_' + '_ys'+ str(yieldstep) + \
    66                           '_ft' + str(finaltime)
     65        domain.set_name(filename + '_' + '_ys'+ str(yieldstep) + \
     66                        '_ft' + str(finaltime))
    6767        print "Output being written to " + domain.get_datadir() + sep + \
    68               domain.filename + "." + domain.format
     68              domain.get_name() + "." + domain.format
    6969
    7070
  • anuga_core/source/anuga/examples/run_tsh.py

    r3535 r3846  
    7676        else:
    7777            s = 'nonsmooth'       
    78         domain.filename = filename + '_' + s + '_ys'+ str(yieldstep) + \
    79                           '_ft' + str(finaltime)
     78        domain.set_name(filename + '_' + s + '_ys'+ str(yieldstep) + \
     79                        '_ft' + str(finaltime))
    8080        print "Output being written to " + domain.get_datadir() + sep + \
    81               domain.filename + "." + domain.format
     81              domain.get_name() + "." + domain.format
    8282
    8383
  • anuga_core/source/anuga/examples/run_tsh_weir.py

    r3565 r3846  
    4141domain.store = False #True
    4242domain.format = 'sww'
    43 domain.filename = 'weir'
     43domain.set_name('weir')
    4444domain.checkpoint = False #True
    4545domain.visualise = True #False
  • anuga_core/source/anuga/examples/twolevels.py

    r3567 r3846  
    2525domain.set_name('two_levels')
    2626print "Output being written to " + domain.get_datadir() + sep + \
    27               domain.filename + "_size%d." %len(domain) + domain.format
     27              domain.get_name() + "_size%d." %len(domain) + domain.format
    2828       
    2929
Note: See TracChangeset for help on using the changeset viewer.