Rev | Line | |
---|
[26740] | 1 | Index: ../trunk-jpl/src/m/classes/stochasticforcing.py
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/classes/stochasticforcing.py (revision 26665)
|
---|
| 4 | +++ ../trunk-jpl/src/m/classes/stochasticforcing.py (revision 26666)
|
---|
| 5 | @@ -34,6 +34,7 @@
|
---|
| 6 | s += '{}\n'.format(fielddisplay(self, 'randomflag', 'whether to apply real randomness (true) or pseudo-randomness with fixed seed (false)'))
|
---|
| 7 | s += 'Available fields:\n'
|
---|
| 8 | s += ' DefaultCalving\n'
|
---|
| 9 | + s += ' FloatingMeltRate\n'
|
---|
| 10 | s += ' SMBautoregression\n'
|
---|
| 11 | s += ' FrontalForcingsRignotAutoregression (thermal forcing)\n'
|
---|
| 12 | return s
|
---|
| 13 | @@ -57,7 +58,7 @@
|
---|
| 14 | # Check that covariance matrix is positive definite (this is done internally by linalg)
|
---|
| 15 | try:
|
---|
| 16 | np.linalg.cholesky(self.covariance)
|
---|
| 17 | - except LinAlgError:
|
---|
| 18 | + except:
|
---|
| 19 | error('md.stochasticforcing.covariance is not positive definite')
|
---|
| 20 |
|
---|
| 21 | # Check that all fields agree with the corresponding md class and if any field needs the default params
|
---|
Note:
See
TracBrowser
for help on using the repository browser.