Changeset 23751
- Timestamp:
- 02/21/19 11:22:48 (6 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/consistency/checkfield.py
r23716 r23751 201 201 else: 202 202 maxval=np.nanmax(field[0]) 203 elif hasattr(field, 'fov_forward_indices'): 204 maxval=field.fov_forward_indices[0] 203 205 if maxval>upperbound: 204 206 md = md.checkmessage(options.getfieldvalue('message',"field '%s' should have values below %d" % (fieldname,upperbound))) -
issm/trunk-jpl/src/py3/consistency/checkfield.py
r23709 r23751 201 201 else: 202 202 maxval=np.nanmax(field[0]) 203 elif hasattr(field, 'fov_forward_indices'): 204 maxval=field.fov_forward_indices[0] 203 205 if maxval>upperbound: 204 206 md = md.checkmessage(options.getfieldvalue('message',"field '%s' should have values below %d" % (fieldname,upperbound))) -
issm/trunk-jpl/test/NightlyRun/test3019.py
r23749 r23751 34 34 35 35 #now run vectorial forward mode 36 md.autodiff.independents=[independent('name','md.geometry.thickness','type','vertex','nods',md.mesh.numberofvertices,'fov_forward_indices',np.arange(1,md.mesh.numberofvertices ))]36 md.autodiff.independents=[independent('name','md.geometry.thickness','type','vertex','nods',md.mesh.numberofvertices,'fov_forward_indices',np.arange(1,md.mesh.numberofvertices+1))] 37 37 md.autodiff.dependents=[dependent('name','MaxVel','type','scalar')] 38 38 md.autodiff.driver='fov_forward'
Note:
See TracChangeset
for help on using the changeset viewer.