Ignore:
Timestamp:
08/31/20 14:54:17 (4 years ago)
Author:
jdquinn
Message:

CHG: Committing changes in support of test2004.py (no longer failing, but still need to track down sources of large errors)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/surfaceload.py

    r25171 r25499  
    77
    88class surfaceload(object):
    9     '''
    10     SURFACELOAD class definition
     9    """SURFACELOAD class definition
    1110
    12         Usage:
    13             surfaceload = surfaceload()
    14     '''
     11    Usage:
     12        surfaceload = surfaceload()
     13    """
    1514
    1615    def __init__(self, *args): #{{{
     
    5857    def marshall(self, prefix, md, fid): #{{{
    5958        if len(self.icethicknesschange) == 0:
    60             self.icethicknesschange = np.zeros(md.mesh.numberofelements + 1)
     59            self.icethicknesschange = np.zeros((md.mesh.numberofelements + 1, ))
    6160
    6261        if len(self.waterheightchange) == 0:
    63             self.waterheightchange = np.zeros(md.mesh.numberofelements + 1)
     62            self.waterheightchange = np.zeros((md.mesh.numberofelements + 1, ))
    6463
    6564        if len(self.other) == 0:
    66             self.other = np.zeros(md.mesh.numberofelements + 1)
     65            self.other = np.zeros((md.mesh.numberofelements + 1, ))
    6766
    6867        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.