Ignore:
Timestamp:
11/14/13 14:50:13 (11 years ago)
Author:
Eric.Larour
Message:

CHG: checkfield could not run for massatfluggate or misfit classes, because these classes do not
have access to their own fields through the model! So we modified checkfield.m and checkfield.py to accept
either directly a field, or indirectly a fieldname which then is used to retrieve from the model.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/balancethickness.py

    r15567 r16764  
    4242                        return md
    4343
    44                 md = checkfield(md,'balancethickness.spcthickness')
    45                 md = checkfield(md,'balancethickness.thickening_rate','size',[md.mesh.numberofvertices],'NaN',1)
    46                 md = checkfield(md,'balancethickness.stabilization','size',[1],'values',[0,1,2,3])
     44                md = checkfield(md,'fieldname','balancethickness.spcthickness')
     45                md = checkfield(md,'fieldname','balancethickness.thickening_rate','size',[md.mesh.numberofvertices],'NaN',1)
     46                md = checkfield(md,'fieldname','balancethickness.stabilization','size',[1],'values',[0,1,2,3])
    4747
    4848                return md
Note: See TracChangeset for help on using the changeset viewer.