Changeset 4536
- Timestamp:
- Jun 6, 2007, 5:46:34 PM (17 years ago)
- Location:
- anuga_core/source/anuga/abstract_2d_finite_volumes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/general_mesh.py
r4478 r4536 476 476 477 477 # Count number of triangles per node 478 number_of_triangles_per_node = zeros(self.number_of_ nodes)479 for volume_id, triangle in enumerate(self. triangles):478 number_of_triangles_per_node = zeros(self.number_of_full_nodes) 479 for volume_id, triangle in enumerate(self.get_triangles()): 480 480 for vertex_id in triangle: 481 481 number_of_triangles_per_node[vertex_id] += 1 … … 486 486 487 487 # Register (triangle, vertex) indices for each node 488 vertexlist = [None]*self.number_of_ nodes489 for volume_id in range(self.number_of_ triangles):488 vertexlist = [None]*self.number_of_full_nodes 489 for volume_id in range(self.number_of_full_triangles): 490 490 491 491 a = self.triangles[volume_id, 0] -
anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py
r4478 r4536 1104 1104 total = 0.0 1105 1105 for index in self.domain.vertex_value_indices: 1106 if current_node == N: 1107 msg = 'Current node exceeding number of nodes (%d) ' %(N) 1108 raise msg 1109 1110 1111 1106 1112 k += 1 1107 1113 -
anuga_core/source/anuga/abstract_2d_finite_volumes/quantity_ext.c
r4471 r4536 231 231 232 232 for (i=0; i<N; i++) { 233 234 //if (current_node == N) { 235 // printf("Current node exceeding number of nodes (%d)", N); 236 // return 1; 237 // } 238 233 239 index = vertex_value_indices[i]; 234 240 k += 1; … … 366 372 (double*) A -> data); 367 373 374 //printf("Error %d", err); 368 375 if (err != 0) { 369 376 PyErr_SetString(PyExc_RuntimeError,
Note: See TracChangeset
for help on using the changeset viewer.