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

    r16470 r16764  
    4949                function md = checkconsistency(obj,md,solution,analyses) % {{{
    5050
    51                         md = checkfield(md,'settings.io_gather','numel',[1],'values',[0 1]);
    52                         md = checkfield(md,'settings.lowmem','numel',[1],'values',[0 1]);
    53                         md = checkfield(md,'settings.output_frequency','numel',[1],'>=',1);
    54                         md = checkfield(md,'settings.waitonlock','numel',[1]);
     51                        md = checkfield(md,'fieldname','settings.io_gather','numel',[1],'values',[0 1]);
     52                        md = checkfield(md,'fieldname','settings.lowmem','numel',[1],'values',[0 1]);
     53                        md = checkfield(md,'fieldname','settings.output_frequency','numel',[1],'>=',1);
     54                        md = checkfield(md,'fieldname','settings.waitonlock','numel',[1]);
    5555
    5656                end % }}}
Note: See TracChangeset for help on using the changeset viewer.