Changeset 16390


Ignore:
Timestamp:
10/11/13 13:28:02 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added conversion from mesh to mesh2dvertical

File:
1 edited

Legend:

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

    r16343 r16390  
    3232                                case 0
    3333                                        obj=setdefaultparameters(obj);
     34                                case 1
     35                                        inputstruct=varargin{1};
     36                                        list1 = properties('mesh2dvertical');
     37                                        list2 = fieldnames(inputstruct);
     38                                        for i=1:length(list1)
     39                                                fieldname = list1{i};
     40                                                if ismember(fieldname,list2),
     41                                                        obj.(fieldname) = inputstruct.(fieldname);
     42                                                end
     43                                        end
    3444                                otherwise
    3545                                        error('constructor not supported');
Note: See TracChangeset for help on using the changeset viewer.