source: issm/oecreview/Archive/26740-27031/ISSM-26854-26855.diff@ 27032

Last change on this file since 27032 was 27032, checked in by Mathieu Morlighem, 3 years ago

CHG: added 26740-27031

File size: 817 bytes
  • TabularUnified ../trunk-jpl/src/m/classes/stochasticforcing.py

     
    156156
    157157    def marshall(self, prefix, md, fid):  # {{{
    158158        yts = md.constants.yts
    159         num_fields = len(self.fields)
    160159
    161160        WriteData(fid, prefix, 'object', self, 'fieldname', 'isstochasticforcing', 'format', 'Boolean')
    162161        if not self.isstochasticforcing:
    163162            return md
     163
    164164        else:
     165            num_fields = len(self.fields)
    165166            # Retrieve dimensionality of each field
    166167            dimensions = self.defaultdimension * np.ones((num_fields))
    167168            for ind, field in enumerate(self.fields):
Note: See TracBrowser for help on using the repository browser.