Changeset 8537


Ignore:
Timestamp:
Aug 27, 2012, 9:28:14 PM (13 years ago)
Author:
steve
Message:

Using config files to allow different ghost_layer_widths

Location:
trunk/anuga_core/source/anuga_parallel
Files:
2 added
1 edited

Legend:

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

    r8499 r8537  
    2727from anuga.abstract_2d_finite_volumes.neighbour_mesh import Mesh
    2828from anuga import indent
     29
     30try:
     31    import local_config as config
     32except:
     33    import anuga_parallel.config as config
    2934
    3035
     
    353358    ntriangles = mesh.number_of_triangles
    354359
     360
     361    layer_width = config.ghost_layer_width
     362
     363    print layer_width
     364
     365    trianglemap = num.zeros(ntriangles, 'i')
     366
    355367    # Find the first layer of boundary triangles
    356 
    357     layer_width = 2
    358 
    359 
    360     trianglemap = num.zeros(ntriangles, 'i')
    361 
    362 
    363368    for t in range(tlower, tupper):
    364369       
Note: See TracChangeset for help on using the changeset viewer.