- Timestamp:
- Mar 5, 2009, 10:57:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/abstract_2d_finite_volumes/general_mesh.py
r6428 r6463 1 import copy 1 2 import numpy as num 2 3 … … 252 253 Default is False as many parts of ANUGA expects relative coordinates. 253 254 (To see which, switch to default absolute=True and run tests). 255 256 Note: This method returns a modified _copy_ of the nodes slice if 257 absolute is True. If absolute is False, just return the slice. 258 This is related to the ensure_numeric() returning a copy problem. 254 259 """ 255 260 … … 257 262 if absolute is True: 258 263 if not self.geo_reference.is_absolute(): 264 # get a copy so as not to modify the internal self.nodes array 265 V = copy.copy(V) 259 266 V += num.array([self.geo_reference.get_xllcorner(), 260 267 self.geo_reference.get_yllcorner()], num.float)
Note: See TracChangeset
for help on using the changeset viewer.