Changeset 3846 for anuga_core/source/anuga/examples
- Timestamp:
- Oct 24, 2006, 12:59:08 PM (18 years ago)
- Location:
- anuga_core/source/anuga/examples
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/examples/beach.py
r3656 r3846 37 37 domain.default_order = 2 38 38 print "Output being written to " + domain.get_datadir() + sep + \ 39 domain. filename+ domain.format39 domain.get_name() + domain.format 40 40 41 41 -
anuga_core/source/anuga/examples/cornell_room.py
r3565 r3846 73 73 else: 74 74 s = 'nonsmooth' 75 domain. filename = root + '_' + s75 domain.set_name(root + '_' + s) 76 76 77 77 #Set bed-slope and friction -
anuga_core/source/anuga/examples/flatbed.py
r3565 r3846 25 25 domain.set_name('polygons') 26 26 print "Output being written to " + domain.get_datadir() + sep + \ 27 domain. filename+ "_size%d." %len(domain) + domain.format27 domain.get_name() + "_size%d." %len(domain) + domain.format 28 28 29 29 -
anuga_core/source/anuga/examples/netherlands.py
r3842 r3846 126 126 #FIXME: This was os.path.splitext but caused weird filenames based on root 127 127 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) 129 130 else: 130 131 #domain.initialise_visualiser(rect=[0.0,0.0,1.0,1.0]) -
anuga_core/source/anuga/examples/pressure_force.py
r3565 r3846 24 24 25 25 domain.store = True 26 domain. filename = 'pressure'26 domain.set_name('pressure') 27 27 28 28 ####################### -
anuga_core/source/anuga/examples/run_gong.py
r3535 r3846 63 63 file_path, filename = path.split(filename) 64 64 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)) 67 67 print "Output being written to " + domain.get_datadir() + sep + \ 68 domain. filename+ "." + domain.format68 domain.get_name() + "." + domain.format 69 69 70 70 -
anuga_core/source/anuga/examples/run_tsh.py
r3535 r3846 76 76 else: 77 77 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)) 80 80 print "Output being written to " + domain.get_datadir() + sep + \ 81 domain. filename+ "." + domain.format81 domain.get_name() + "." + domain.format 82 82 83 83 -
anuga_core/source/anuga/examples/run_tsh_weir.py
r3565 r3846 41 41 domain.store = False #True 42 42 domain.format = 'sww' 43 domain. filename = 'weir'43 domain.set_name('weir') 44 44 domain.checkpoint = False #True 45 45 domain.visualise = True #False -
anuga_core/source/anuga/examples/twolevels.py
r3567 r3846 25 25 domain.set_name('two_levels') 26 26 print "Output being written to " + domain.get_datadir() + sep + \ 27 domain. filename+ "_size%d." %len(domain) + domain.format27 domain.get_name() + "_size%d." %len(domain) + domain.format 28 28 29 29
Note: See TracChangeset
for help on using the changeset viewer.