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
|
Rev | Line | |
---|
[27032] | 1 | Index: ../trunk-jpl/src/m/classes/stochasticforcing.py
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/classes/stochasticforcing.py (revision 26854)
|
---|
| 4 | +++ ../trunk-jpl/src/m/classes/stochasticforcing.py (revision 26855)
|
---|
| 5 | @@ -156,12 +156,13 @@
|
---|
| 6 |
|
---|
| 7 | def marshall(self, prefix, md, fid): # {{{
|
---|
| 8 | yts = md.constants.yts
|
---|
| 9 | - num_fields = len(self.fields)
|
---|
| 10 |
|
---|
| 11 | WriteData(fid, prefix, 'object', self, 'fieldname', 'isstochasticforcing', 'format', 'Boolean')
|
---|
| 12 | if not self.isstochasticforcing:
|
---|
| 13 | return md
|
---|
| 14 | +
|
---|
| 15 | else:
|
---|
| 16 | + num_fields = len(self.fields)
|
---|
| 17 | # Retrieve dimensionality of each field
|
---|
| 18 | dimensions = self.defaultdimension * np.ones((num_fields))
|
---|
| 19 | for ind, field in enumerate(self.fields):
|
---|
Note:
See
TracBrowser
for help on using the repository browser.