Changeset 6097
- Timestamp:
- Dec 22, 2008, 5:22:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/river2d_integration/River2Dcdg_ANUGAMesh.py
r6085 r6097 77 77 x=float(fields[x_index]) 78 78 y=float(fields[x_index + 1]) 79 #z=float(fields[x_index + 2]) # TODO: Get elevation data a separate list 79 z=float(fields[x_index + 2]) # Elevation 80 n=float(fields[x_index + 3]) # Mannings roughness 80 81 outfid1.write('%.3f, %.3f\n' % (x, y)) 81 82 82 elif reading_vertices is True: # Read Vertices83 elif reading_vertices is True: # Read Elements 83 84 fields = line.split() 84 85 85 86 # Create indices and make them start from 0 86 pt1 =int(fields[3]) - 187 pt2 =int(fields[4]) - 188 pt3 =int(fields[5]) - 187 pt1 = int(fields[3]) - 1 88 pt2 = int(fields[4]) - 1 89 pt3 = int(fields[5]) - 1 89 90 outfid2.write('%d, %d, %d\n' % (pt1, pt2,pt3)) 90 91 … … 92 93 outfid1.close() 93 94 outfid2.close() 94 print "\nConversion complete.\n" 95 print 'ALL DONE' 96 raw_input("Press ENTER to exit.\n") 95 print '\nConversion complete.' 96 raw_input('Press ENTER to exit.')
Note: See TracChangeset
for help on using the changeset viewer.