source: issm/oecreview/Archive/25834-26739/ISSM-26673-26674.diff@ 26740

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

CHG: added 25834-26739

File size: 1.4 KB
RevLine 
[26740]1Index: ../trunk-jpl/src/m/classes/stochasticforcing.py
2===================================================================
3--- ../trunk-jpl/src/m/classes/stochasticforcing.py (revision 26673)
4+++ ../trunk-jpl/src/m/classes/stochasticforcing.py (revision 26674)
5@@ -134,7 +134,7 @@
6 dimensions[ind] = md.frontalforcings.num_basins
7
8 # Scaling covariance matrix (scale column-by-column and row-by-row)
9- scaledfields = ['DefaultCalving', 'SMBautoregression'] # list of fields that need scaling * 1/yts
10+ scaledfields = ['DefaultCalving','FloatingMeltRate','SMBautoregression'] # list of fields that need scaling * 1/yts
11 tempcovariance = np.copy(self.covariance)
12 for i in range(num_fields):
13 if self.fields[i] in scaledfields:
14Index: ../trunk-jpl/test/NightlyRun/test543.py
15===================================================================
16--- ../trunk-jpl/test/NightlyRun/test543.py (revision 26673)
17+++ ../trunk-jpl/test/NightlyRun/test543.py (revision 26674)
18@@ -75,8 +75,8 @@
19
20 #Hard-coding covariance matrix because python is complaining
21 covglob = np.array([[1e-4,0.,0.,0.,0.,0.],[0.,1e-4,0.,0.,0.,0.],[0.,0.,1e-2,0.,0.,0.],[0.,0.,0.,1e-1,0.,0.],[0.,0.,0.,0.,0.05,0.],[0.,0.,0.,0.,0.,0.05]])
22-testchol = np.linalg.cholesky(covglob)
23-print(testchol)
24+#testchol = np.linalg.cholesky(covglob)
25+#print(testchol)
26
27 # Stochastic forcing
28 md.stochasticforcing.isstochasticforcing = 1
Note: See TracBrowser for help on using the repository browser.