Changeset 9416


Ignore:
Timestamp:
Jan 16, 2015, 4:38:18 PM (10 years ago)
Author:
steve
Message:

Moved patong/gauges data

Location:
trunk
Files:
2 edited
1 moved

Legend:

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

    r9247 r9416  
    219219    partition.distribute(numprocs)
    220220
     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
    221233   
    222234    for p in range(0, numprocs):
  • trunk/anuga_core/validation_tests/case_studies/patong/run_model.py

    r9241 r9416  
    175175
    176176    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
    177186    domain.set_quantity('elevation',
    178187                        filename=project.combined_elevation+'.pts',
Note: See TracChangeset for help on using the changeset viewer.