Changeset 6124


Ignore:
Timestamp:
10/01/10 16:51:34 (15 years ago)
Author:
Mathieu Morlighem
Message:

merged and completed loadmodel

Location:
issm/trunk/src/m
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/structtomodel.m

    r1 r6124  
    1616        end
    1717end
     18
     19%some special treatment for models of previous ISSM versions
     20if isfield(structmd,'drag'), md.drag_coefficient=structmd.drag; end
     21if isfield(structmd,'p'), md.drag_p=structmd.p; end
     22if isfield(structmd,'q'), md.drag_q=structmd.p; end
     23if isfield(structmd,'B'), md.rheology_B=structmd.B; end
     24if isfield(structmd,'n'), md.rheology_n=structmd.n; end
     25if (isfield(structmd,'type') & ischar(structmd.type)),
     26        if strcmpi(structmd.type,'2d'), md.dim=2; end
     27        if strcmpi(structmd.type,'3d'), md.dim=3; end
     28end
Note: See TracChangeset for help on using the changeset viewer.