Changeset 3846 for anuga_work/development
- Timestamp:
- Oct 24, 2006, 12:59:08 PM (18 years ago)
- Location:
- anuga_work/development
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/LWRU1/lwru1.py
r3514 r3846 58 58 import sys, os 59 59 base = os.path.basename(sys.argv[0]) 60 domain.filename, _ = os.path.splitext(base) 61 60 61 basename, _ = os.path.splitext(base) 62 domain.set_name(basename) 62 63 63 64 #Set initial values -
anuga_work/development/cairns_2006/run_cairns.py
r3514 r3846 108 108 109 109 base = os.path.basename(sys.argv[0]) 110 domain.filename, _ = os.path.splitext(base) 110 basename, _ = os.path.splitext(base) 111 domain.set_name(basename) 111 112 domain.default_order = 2 112 113 domain.store = True #Store for visualisation purposes -
anuga_work/development/pyvolution-1d/data_manager.py
r3535 r3846 413 413 #remember the old filename, then give domain a 414 414 #name with the extension 415 old_domain_filename = self.domain. filename415 old_domain_filename = self.domain.get_name() 416 416 if not self.recursion: 417 self.domain. filename = self.domain.filename+filename_ext417 self.domain.set_name(old_domain_filename+filename_ext) 418 418 419 419 #change the domain starttime to the current time … … 440 440 #restore the old starttime and filename 441 441 self.domain.starttime = old_domain_starttime 442 self.domain. filename = old_domain_filename442 self.domain.set_name(old_domain_filename) 443 443 else: 444 444 self.recursion = False … … 3388 3388 file_path, filename = path.split(filename) 3389 3389 filename, ext = path.splitext(filename) 3390 domain. filename = filename3390 domain.set_name(filename) 3391 3391 domain.reduction = mean 3392 3392 if verbose == True:print "file_path",file_path … … 3396 3396 if verbose == True: 3397 3397 print "Output written to " + domain.get_datadir() + sep + \ 3398 domain. filename+ "." + domain.format3398 domain.get_name() + "." + domain.format 3399 3399 sww = get_dataobject(domain) 3400 3400 sww.store_connectivity() -
anuga_work/development/pyvolution-1d/test_shallow_water_1d.py
r3295 r3846 632 632 assert not allclose(stage, initial_stage) 633 633 634 os.remove(domain. filename+ '.sww')634 os.remove(domain.get_name() + '.sww') 635 635 636 636 ##################################################### -
anuga_work/development/stochastic_study/run_model.py
r3514 r3846 148 148 149 149 print 'P%d: Extracting time series for realisation %d from file %s'\ 150 %(myid, realisation, project.working_dir + domain.filename + '.sww') 151 f = file_function(project.working_dir + domain.filename + '.sww', 150 %(myid, realisation, project.working_dir +\ 151 domain.get_name() + '.sww') 152 f = file_function(project.working_dir +\ 153 domain.get_name() + '.sww', 152 154 quantities='stage', 153 155 interpolation_points=project.gauges, -
anuga_work/development/stochastic_study/run_simple_model.py
r3514 r3846 150 150 151 151 print 'P%d: Extracting time series for realisation %d from file %s'\ 152 %(myid, realisation, project.working_dir + domain.filename + '.sww') 153 f = file_function(project.working_dir + domain.filename + '.sww', 152 %(myid, realisation, project.working_dir +\ 153 domain.get_name() + '.sww') 154 f = file_function(project.working_dir +\ 155 domain.get_name() + '.sww', 154 156 quantities='stage', 155 157 interpolation_points=project.gauges,
Note: See TracChangeset
for help on using the changeset viewer.