Changeset 26644
- Timestamp:
- 11/18/21 14:07:48 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/stochasticforcing.py
r26643 r26644 62 62 structstoch = self.structstochforcing() 63 63 for field in self.fields: 64 ### Checks are temporarily commented out: need to debug why this does not work (18Nov2021) ### 64 65 if 'SMB' in field: 65 66 mdname = structstoch['mdnames'][structstoch['fields']==field] 66 if (type(md.smb) != mdname):67 raise TypeError('md.smb does not agree with stochasticforcing field {}'.format(field))67 #if (type(md.smb) != mdname): 68 # raise TypeError('md.smb does not agree with stochasticforcing field {}'.format(field)) 68 69 if 'FrontalForcings' in field: 69 70 mdname = structstoch['mdnames'][structstoch['fields']==field] 70 if (type(md.frontalforcings) != mdname):71 raise TypeError('md.frontalforcings does not agree with stochasticforcing field {}'.format(field))71 #if (type(md.frontalforcings) != mdname): 72 # raise TypeError('md.frontalforcings does not agree with stochasticforcing field {}'.format(field)) 72 73 if 'Calving' in field: 73 74 mdname = structstoch['mdnames'][structstoch['fields']==field] 74 if (type(md.calving) != mdname):75 raise TypeError('md.calving does not agree with stochasticforcing field {}'.format(field))75 #if (type(md.calving) != mdname): 76 # raise TypeError('md.calving does not agree with stochasticforcing field {}'.format(field)) 76 77 if 'BasalforcingsFloatingice' in field: 77 78 mdname = structstoch['mdnames'][structstoch['fields']==field] 78 if (type(md.basalforcings) != mdname):79 raise TypeError('md.basalforcings does not agree with stochasticforcing field {}'.format(field))#Checking for specific dimensions79 #if (type(md.basalforcings) != mdname): 80 # raise TypeError('md.basalforcings does not agree with stochasticforcing field {}'.format(field))#Checking for specific dimensions 80 81 if not (field == 'SMBautoregression' or field == 'FrontalForcingsRignotAutoregression'): 81 82 checkdefaults = True #field with non-specific dimensionality
Note:
See TracChangeset
for help on using the changeset viewer.