Changeset 25171 for issm/trunk-jpl/src/m/classes/slr.py
- Timestamp:
- 06/28/20 00:26:36 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/slr.py
r25170 r25171 122 122 def checkconsistency(self, md, solution, analyses): # {{{ 123 123 #Early return 124 if (solution != 'SealevelriseAnalysis') or (solution == 'TransientSolution' and not md.transient.isslr):124 if (solution != 'SealevelriseAnalysis') or (solution == 'TransientSolution' and md.transient.isslr == 0): 125 125 return md 126 126 … … 147 147 148 148 #check that love numbers are provided at the same level of accuracy: 149 if (size(self.love_h, 0) != size(self.love_k, 0) |size(self.love_h, 0) != size(self.love_l, 0)):150 error('slr error message: love numbers should be provided at the same level of accuracy')149 if (size(self.love_h, 0) != size(self.love_k, 0)) or (size(self.love_h, 0) != size(self.love_l, 0)): 150 raise Exception('slr error message: love numbers should be provided at the same level of accuracy') 151 151 152 152 #cross check that whereever we have an ice load, the mask is < 0 on each vertex: … … 160 160 #a coupler to a planet model is provided. 161 161 if self.geodetic and not md.transient.iscoupler and domaintype(md.mesh) != 'mesh3dsurface': 162 error('model is requesting geodetic computations without being a mesh3dsurface, or being coupled to one!')162 raise Exception('model is requesting geodetic computations without being a mesh3dsurface, or being coupled to one!') 163 163 return md 164 164 # }}}
Note:
See TracChangeset
for help on using the changeset viewer.