Changeset 3115 for production/wollongong_2006/run_flagstaff.py
- Timestamp:
- Jun 8, 2006, 2:10:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/wollongong_2006/run_flagstaff.py
r3105 r3115 54 54 print 'I am processor %d of %d on node %s' %(myid, numprocs, processor_name) 55 55 56 bounding_rectangle = zeros(4, Float) # Buffer for results57 58 56 59 57 #------------------------------------------------------------------------------ … … 94 92 interior_regions=project.interior_regions) 95 93 96 ## Add buildings97 #dict = importUngenerateFile(project.buildings_filename)98 #Segment.set_default_tag('wall') # This should bind to a Reflective boundary99 #mesh.addVertsSegs(dict)100 101 102 94 # Add buildings 103 95 # This should bind to a Reflective boundary … … 117 109 print domain.statistics() 118 110 119 domain.set_name(project.basename)111 #domain.set_name(project.basename) 120 112 domain.set_datadir(project.outputdir) 121 domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum']) 122 123 bounding_rectangle[:] = domain.get_extent(absolute=True) 113 #domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum']) 114 domain.set_quantities_to_be_stored(None) 115 116 domain.set_quantity('elevation', 117 filename=project.demname + '.pts', 118 use_cache=True, 119 verbose=True) 120 124 121 125 122 # Subdivide the mesh … … 161 158 162 159 163 pypar.broadcast(bounding_rectangle, 0)164 165 160 # Build the domain for this processor 166 161 domain = Parallel_Domain(points, vertices, boundary, … … 168 163 ghost_recv_dict = ghost_recv_dict) 169 164 165 # FIXME (Ole): Name currently has to be set here to get the processor number 166 # right. It would be easy to build into Parallel_Domain 167 domain.set_name(project.basename) 170 168 171 169 #------------------------------------------------------------------------------ … … 175 173 domain.set_quantity('stage', project.initial_sealevel) 176 174 domain.set_quantity('friction', 0.03) 177 domain.set_quantity('elevation', 178 filename=project.demname + '.pts', 179 use_cache=True, 180 verbose=True) 175 176 # 177 # FIXME (Ole): This one segfaults which is bad, because set_quantity is 178 # time consuming and should be done here rather than on processor 0 179 # 180 #domain.set_quantity('elevation', 181 # filename=project.demname + '.pts', 182 # use_cache=True, 183 # verbose=True) 181 184 182 185 … … 196 199 'ghost': None}) 197 200 198 201 202 203 print 'P%d: Ready to evolve. Value of store is %s' %(myid, str(domain.store)) 204 205 199 206 #------------------------------------------------------------------------------ 200 207 # Evolve system through time
Note: See TracChangeset
for help on using the changeset viewer.