Changeset 650
- Timestamp:
- Dec 1, 2004, 4:56:11 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pmesh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pmesh/mesh.py
r607 r650 26 26 import exceptions 27 27 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? 31 initialconversions = ['', 'external',''] 29 32 30 33 #from os import sep … … 1694 1697 Also, input an initial converting list of the strings 1695 1698 Note, the converting list starts off with 1696 ["internal boundary", "external boundary" ]1699 ["internal boundary", "external boundary", "internal boundary"] 1697 1700 example input and output 1698 1701 input ["a","b","a","c"],["c"] 1699 1702 output [[2, 1, 2, 0], ['c', 'b', 'a']] 1700 1703 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? 1703 1707 1704 1708 # note, order the initial converting list is important, -
inundation/ga/storm_surge/pmesh/meshHarness.py
r431 r650 384 384 seg[1].marker == "external" and 385 385 seg[2].marker == "external" and 386 seg[3].marker == " internal" and386 seg[3].marker == "" and 387 387 seg[4].marker == "external", 388 388 '2nd seg markers are wrong') … … 444 444 lFile[14] == "1 1 4 external" and 445 445 lFile[15] == "2 2 0 external" and 446 lFile[16] == "3 0 3 internal" and446 lFile[16] == "3 0 3 " and 447 447 lFile[17] == "4 4 2 external" , 448 448 'Ascii file is wrong, segment') … … 524 524 lFile[14] == "1 1 4 external" and 525 525 lFile[15] == "2 2 0 external" and 526 lFile[16] == "3 0 3 internal" and526 lFile[16] == "3 0 3 " and 527 527 lFile[17] == "4 4 2 external" , 528 528 'Ascii file is wrong, segment')
Note: See TracChangeset
for help on using the changeset viewer.