Changeset 3948
- Timestamp:
- Nov 8, 2006, 6:14:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r3947 r3948 380 380 381 381 # FIXME (HACK) 382 truncation = self.domain.number_of_full_nodes 383 #print len(z), len(Z), truncation 382 if len(z) <> len(Z): 383 truncation = self.domain.number_of_full_nodes 384 Z = Z[:truncation] 385 print len(z), len(Z), truncation, len(self.domain.get_nodes()) 384 386 385 z[:] = Z [:truncation].astype(self.precision)387 z[:] = Z.astype(self.precision) 386 388 387 389 #FIXME: Backwards compatibility 388 390 z = fid.variables['z'] 389 z[:] = Z [:truncation].astype(self.precision)391 z[:] = Z.astype(self.precision) 390 392 ################################ 391 393 … … 501 503 # HACK 502 504 truncation = self.domain.number_of_full_nodes 503 A = A[:truncation]505 504 506 505 507 #FIXME: Make this general (see below) … … 508 510 #print z[:] 509 511 #print A-z[:] 512 513 # HACK 514 if len(z) <> len(A): 515 A = A[:truncation] 516 517 510 518 A = choose(A-z[:] >= self.minimum_storable_height, 511 519 (z[:], A))
Note: See TracChangeset
for help on using the changeset viewer.