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/flaim.m

    r13646 r16764  
    3737                        if solution~=FlaimSolutionEnum(), return; end
    3838
    39                         md = checkfield(md,'flaim.tracks','file',1);
     39                        md = checkfield(md,'fieldname','flaim.tracks','file',1);
    4040                        if any(isnan(md.flaim.criterion)) || isempty(md.flaim.criterion)
    41                                 md = checkfield(md,'flaim.targets','file',1);
     41                                md = checkfield(md,'fieldname','flaim.targets','file',1);
    4242                        else
    43                                 md = checkfield(md,'flaim.criterion','numel',[md.mesh.numberofvertices md.mesh.numberofelements]);
     43                                md = checkfield(md,'fieldname','flaim.criterion','numel',[md.mesh.numberofvertices md.mesh.numberofelements]);
    4444                        end
    4545
Note: See TracChangeset for help on using the changeset viewer.