Changeset 23751


Ignore:
Timestamp:
02/21/19 11:22:48 (6 years ago)
Author:
jdquinn
Message:

CHG: Temporary fix for ADOL-C ampioff (Nathan will refactor tomorrow)

Location:
issm/trunk-jpl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/consistency/checkfield.py

    r23716 r23751  
    201201                                else:
    202202                                        maxval=np.nanmax(field[0])
     203                        elif hasattr(field, 'fov_forward_indices'):
     204                                maxval=field.fov_forward_indices[0]
    203205                        if maxval>upperbound:
    204206                                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  
    201201                                else:
    202202                                        maxval=np.nanmax(field[0])
     203                        elif hasattr(field, 'fov_forward_indices'):
     204                                maxval=field.fov_forward_indices[0]
    203205                        if maxval>upperbound:
    204206                                md = md.checkmessage(options.getfieldvalue('message',"field '%s' should have values below %d" % (fieldname,upperbound)))
  • issm/trunk-jpl/test/NightlyRun/test3019.py

    r23749 r23751  
    3434
    3535#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))]
     36md.autodiff.independents=[independent('name','md.geometry.thickness','type','vertex','nods',md.mesh.numberofvertices,'fov_forward_indices',np.arange(1,md.mesh.numberofvertices+1))]
    3737md.autodiff.dependents=[dependent('name','MaxVel','type','scalar')]
    3838md.autodiff.driver='fov_forward'
Note: See TracChangeset for help on using the changeset viewer.