Changeset 3946
- Timestamp:
- Nov 8, 2006, 5:54:03 PM (18 years ago)
- Location:
- anuga_core/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py
r3928 r3946 8 8 """ 9 9 10 from Numeric import allclose 10 11 from anuga.config import epsilon 11 12 … … 164 165 self.tri_full_flag[id] = 0 165 166 167 # Test the assumption that all full triangles are store before 168 # the ghost triangles. 169 assert allclose(self.tri_full_flag[:self.number_of_full_nodes],1) 170 166 171 167 172 #Defaults -
anuga_core/source/anuga/shallow_water/data_manager.py
r3930 r3946 298 298 299 299 if domain.smooth is True: 300 fid.createDimension('number_of_points', len(domain.vertexlist))301 #fid.createDimension('number_of_points', self.number_of_nodes)300 #fid.createDimension('number_of_points', len(domain.vertexlist)) 301 fid.createDimension('number_of_points', self.domain.number_of_full_nodes) 302 302 303 303 # FIXME(Ole): This will cause sww files for paralle domains to … … 374 374 375 375 376 376 377 x[:] = X.astype(self.precision) 378 377 379 y[:] = Y.astype(self.precision) 378 z[:] = Z.astype(self.precision) 380 381 # FIXME (HACK) 382 truncation = self.domain.number_of_full_nodes 383 print len(z), len(Z), truncation 384 385 z[:] = Z[:truncation].astype(self.precision) 379 386 380 387 #FIXME: Backwards compatibility 381 388 z = fid.variables['z'] 382 z[:] = Z .astype(self.precision)389 z[:] = Z[:truncation].astype(self.precision) 383 390 ################################ 384 391 … … 491 498 A,V = Q.get_vertex_values(xy = False, 492 499 precision = self.precision) 500 501 # HACK 502 truncation = self.domain.number_of_full_nodes 503 A = A[:truncation] 493 504 494 505 #FIXME: Make this general (see below) -
anuga_core/source/anuga_parallel/build_submesh.py
r3818 r3946 129 129 def ghost_layer(submesh, mesh, p, tupper, tlower): 130 130 131 ncoord = len(mesh.coordinates)132 ntriangles = len(mesh.triangles)131 ncoord = mesh.number_of_nodes 132 ntriangles = mesh.number_of_triangles 133 133 134 134 # Find the first layer of boundary triangles … … 191 191 192 192 nodelist = reshape(arrayrange(ncoord),(ncoord,1)) 193 tsubnodes = concatenate((nodelist, mesh. coordinates), 1)193 tsubnodes = concatenate((nodelist, mesh.get_nodes()), 1) 194 194 subnodes = take(tsubnodes, nonzero(nodemap)) 195 195 -
anuga_core/source/anuga_parallel/pmesh_divide.py
r3591 r3946 111 111 n_tri = len(domain.triangles) 112 112 if n_procs != 1: #Because metis chokes on it... 113 n_vert = len(domain.coordinates)113 n_vert = domain.number_of_nodes 114 114 t_list = domain.triangles.copy() 115 115 t_list = reshape(t_list, (-1,)) … … 182 182 # Extract the node list 183 183 184 nodes = domain. coordinates.copy()184 nodes = domain.get_nodes().copy() 185 185 186 186 # Convert the triangle datastructure to be an array type,
Note: See TracChangeset
for help on using the changeset viewer.