Changeset 9416
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/sequential_distribute.py
r9247 r9416 219 219 partition.distribute(numprocs) 220 220 221 # Make sure the partition_dir exists 222 if partition_dir == '.' : 223 pass 224 else: 225 import os 226 import errno 227 try: 228 os.makedirs(partition_dir) 229 except OSError as exception: 230 if exception.errno != errno.EEXIST: 231 raise 232 221 233 222 234 for p in range(0, numprocs): -
trunk/anuga_core/validation_tests/case_studies/patong/run_model.py
r9241 r9416 175 175 176 176 domain.set_quantity('friction', project.friction) 177 178 import zipfile 179 import os 180 zipfile.ZipFile(project.combined_elevation+'.zip'). \ 181 extract(os.path.basename(project.combined_elevation+'.txt')) 182 183 if verbose: print 'Reading pts from txt' 184 anuga.xya2pts(project.combined_elevation+'.txt', verbose = verbose) 185 177 186 domain.set_quantity('elevation', 178 187 filename=project.combined_elevation+'.pts',
Note: See TracChangeset
for help on using the changeset viewer.