Ignore:
Timestamp:
Nov 7, 2006, 1:13:03 PM (18 years ago)
Author:
ole
Message:

Parallel domains now store only full triangles in sww files.
Still need to remove ghost nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r3926 r3928  
    112112                 processor=0,
    113113                 numproc=1,
    114                  number_of_full_nodes=0,
    115                  number_of_full_triangles=0):
     114                 number_of_full_nodes=None,
     115                 number_of_full_triangles=None):
    116116
    117117
     
    746746    import sys
    747747
    748     N = domain.number_of_elements
     748    N = len(domain) # number_of_triangles
    749749
    750750    #Shortcuts
     
    820820    import sys
    821821
    822     N = domain.number_of_elements
     822    N = len(domain) # number_of_triangles
    823823
    824824    #Shortcuts
     
    848848    import sys
    849849
    850     N = domain.number_of_elements
     850    N = len(domain) # number_of_triangles
    851851
    852852    #Shortcuts
     
    960960
    961961    #Update
    962     #FIXME: Modify accroditg to c-version - or discard altogether.
    963     for k in range(domain.number_of_elements):
     962    #FIXME: Modify according to c-version - or discard altogether.
     963    for k in range(len(domain)):
    964964
    965965        if hc[k] < domain.minimum_allowed_height:
     
    999999    """
    10001000
    1001     N = domain.number_of_elements
     1001    N = len(domain)
    10021002    beta_h = domain.beta_h
    10031003
     
    10691069    """
    10701070
    1071     N = domain.number_of_elements
     1071    N = len(domain) # number_of_triangles
    10721072    beta_h = domain.beta_h
    10731073
     
    11141114    hvbar = h_limiter(domain)
    11151115
    1116     for k in range(domain.number_of_elements):
     1116    for k in range(len(domain)):
    11171117        #Compute maximal variation in bed elevation
    11181118        #  This quantitiy is
     
    14021402    g = domain.g
    14031403
    1404     for k in range(domain.number_of_elements):
     1404    for k in range(len(domain)):
    14051405        avg_h = sum( h[k,:] )/3
    14061406
     
    14541454    ymom_update = domain.quantities['ymomentum'].semi_implicit_update
    14551455
    1456     N = domain.number_of_elements
     1456    N = len(domain)
    14571457    eps = domain.minimum_allowed_height
    14581458    g = domain.g
     
    14891489    ymom_update = ymom.semi_implicit_update
    14901490
    1491     N = domain.number_of_elements
     1491    N = len(domain)
    14921492    eps = domain.minimum_allowed_height
    14931493    g = domain.g
     
    15161516    ymom_update = ymom.explicit_update
    15171517
    1518     N = domain.number_of_elements
     1518    N = len(domain)
    15191519    eps = domain.minimum_allowed_height
    15201520    g = domain.g
     
    15431543    ymom_update = domain.quantities['ymomentum'].semi_implicit_update
    15441544
    1545     N = domain.number_of_elements
     1545    N = len(domain) # number_of_triangles
    15461546    eps = domain.minimum_allowed_height
    15471547    g = domain.g #Not necessary? Why was this added?
     
    16811681        ymom_update = domain.quantities['ymomentum'].explicit_update
    16821682
    1683         N = domain.number_of_elements
     1683        N = len(domain) # number_of_triangles
    16841684        t = domain.time
    16851685
     
    17671767    #Computed linear combination between constant stages and and
    17681768    #stages parallel to the bed elevation.
    1769     for k in range(domain.number_of_elements):
     1769    for k in range(len(domain)):
    17701770        #Compute maximal variation in bed elevation
    17711771        #  This quantitiy is
     
    20342034    from Numeric import zeros, Float
    20352035
    2036     N = domain.number_of_elements
     2036    N = len(domain) # number_of_triangles
    20372037
    20382038    #Shortcuts
Note: See TracChangeset for help on using the changeset viewer.