source: issm/oecreview/Archive/25834-26739/ISSM-26665-26666.diff

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

CHG: added 25834-26739

File size: 1.1 KB
  • ../trunk-jpl/src/m/classes/stochasticforcing.py

     
    3434        s += '{}\n'.format(fielddisplay(self, 'randomflag', 'whether to apply real randomness (true) or pseudo-randomness with fixed seed (false)'))
    3535        s += 'Available fields:\n'
    3636        s += '   DefaultCalving\n'
     37        s += '   FloatingMeltRate\n'
    3738        s += '   SMBautoregression\n'
    3839        s += '   FrontalForcingsRignotAutoregression (thermal forcing)\n'
    3940        return s
     
    5758        # Check that covariance matrix is positive definite (this is done internally by linalg)
    5859        try:
    5960            np.linalg.cholesky(self.covariance)
    60         except LinAlgError:
     61        except:
    6162            error('md.stochasticforcing.covariance is not positive definite')
    6263
    6364        # 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.