Changeset 25499 for issm/trunk-jpl/src/m/classes/surfaceload.py
- Timestamp:
- 08/31/20 14:54:17 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/surfaceload.py
r25171 r25499 7 7 8 8 class surfaceload(object): 9 ''' 10 SURFACELOAD class definition 9 """SURFACELOAD class definition 11 10 12 13 14 '''11 Usage: 12 surfaceload = surfaceload() 13 """ 15 14 16 15 def __init__(self, *args): #{{{ … … 58 57 def marshall(self, prefix, md, fid): #{{{ 59 58 if len(self.icethicknesschange) == 0: 60 self.icethicknesschange = np.zeros( md.mesh.numberofelements + 1)59 self.icethicknesschange = np.zeros((md.mesh.numberofelements + 1, )) 61 60 62 61 if len(self.waterheightchange) == 0: 63 self.waterheightchange = np.zeros( md.mesh.numberofelements + 1)62 self.waterheightchange = np.zeros((md.mesh.numberofelements + 1, )) 64 63 65 64 if len(self.other) == 0: 66 self.other = np.zeros( md.mesh.numberofelements + 1)65 self.other = np.zeros((md.mesh.numberofelements + 1, )) 67 66 68 67 WriteData(fid, prefix, 'object', self, 'fieldname', 'icethicknesschange', 'name', 'md.solidearth.surfaceload.icethicknesschange', 'format', 'DoubleMat', 'mattype', 2, 'timeserieslength', md.mesh.numberofelements + 1, 'yts', md.constants.yts)
Note:
See TracChangeset
for help on using the changeset viewer.