Changeset 650


Ignore:
Timestamp:
Dec 1, 2004, 4:56:11 PM (20 years ago)
Author:
duncan
Message:

internal tags nolonger default to 'internal', they now default to not being a tag.

Location:
inundation/ga/storm_surge/pmesh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/mesh.py

    r607 r650  
    2626import exceptions
    2727
    28 initialconversions = ['internal', 'external','internal']
     28# 1st and third values must be the same
     29#initialconversions = ['internal', 'external','internal']
     30# FIXME: maybe make this a switch that the user can change?
     31initialconversions = ['', 'external','']
    2932
    3033#from os import sep
     
    16941697    Also, input an initial converting list of the strings
    16951698    Note, the converting list starts off with
    1696     ["internal boundary", "external boundary"]
     1699    ["internal boundary", "external boundary", "internal boundary"]
    16971700    example input and output
    16981701    input ["a","b","a","c"],["c"]
    16991702    output [[2, 1, 2, 0], ['c', 'b', 'a']]
    17001703
    1701     the first element in the converting list will not be used.  it is
    1702     overwritten with ""
     1704    the first element in the converting list will be
     1705    overwritten with "".
     1706    ?This will become the third item in the converting list?
    17031707   
    17041708    # note, order the initial converting list is important,
  • inundation/ga/storm_surge/pmesh/meshHarness.py

    r431 r650  
    384384                        seg[1].marker == "external" and
    385385                        seg[2].marker == "external" and
    386                         seg[3].marker == "internal" and
     386                        seg[3].marker == "" and
    387387                        seg[4].marker == "external",
    388388                        '2nd seg markers are wrong')
     
    444444                        lFile[14] == "1 1 4 external" and
    445445                        lFile[15] == "2 2 0 external" and
    446                         lFile[16] == "3 0 3 internal" and
     446                        lFile[16] == "3 0 3 " and
    447447                        lFile[17] == "4 4 2 external" ,
    448448                        'Ascii file is wrong, segment')
     
    524524                        lFile[14] == "1 1 4 external" and
    525525                        lFile[15] == "2 2 0 external" and
    526                         lFile[16] == "3 0 3 internal" and
     526                        lFile[16] == "3 0 3 " and
    527527                        lFile[17] == "4 4 2 external" ,
    528528                        'Ascii file is wrong, segment')
Note: See TracChangeset for help on using the changeset viewer.