Changeset 23033
- Timestamp:
- 07/31/18 15:03:26 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/slr.py
r23029 r23033 161 161 if (size(self.love_h,0) != size(self.love_k,0) | size(self.love_h,0) != size(self.love_l,0)): 162 162 error('slr error message: love numbers should be provided at the same level of accuracy') 163 164 #cross check that whereever we have an ice load, the mask is <0 on each vertex: 165 pos=np.where(self.deltathickness) 166 maskpos=md.mask.ice_levelset[md.mesh.elements[pos,:]] 167 els=np.where(maskpos>0) 168 if len(els[1])>0: 169 warnings.warn('slr checkconsistency fail: there are elements with ice loads where some vertices are not on the ice!') 170 171 #check that if geodetic is requested, we are a mesh3dsurface model (planet), or if we are not, 172 #a coupler to a planet model is provided. 173 if self.geodetic: 174 if md.transient.iscoupler: 175 #we are good; 176 else 177 if domaintype(md.mesh)=='mesh3dsurface': 178 #we are good 179 else 180 error('model is requesting geodetic computations without being a mesh3dsurface, or being coupled to one!'); 163 181 return md 164 182 # }}}
Note:
See TracChangeset
for help on using the changeset viewer.