Changeset 9540


Ignore:
Timestamp:
08/31/11 17:13:00 (14 years ago)
Author:
Mathieu Morlighem
Message:

updated loadmodel for older version

File:
1 edited

Legend:

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

    r9539 r9540  
    474474                                 pos=find(structmd.pressureload(:,end)==119); md.pressureload(pos,end)=2;
    475475                         end
     476                         if (structmd.elements_type(end,end)>100),
     477                                 pos=find(structmd.elements_type==59); md.elements_type(pos,end)=0;
     478                                 pos=find(structmd.elements_type==55); md.elements_type(pos,end)=1;
     479                                 pos=find(structmd.elements_type==56); md.elements_type(pos,end)=2;
     480                                 pos=find(structmd.elements_type==60); md.elements_type(pos,end)=3;
     481                                 pos=find(structmd.elements_type==62); md.elements_type(pos,end)=4;
     482                                 pos=find(structmd.elements_type==57); md.elements_type(pos,end)=5;
     483                                 pos=find(structmd.elements_type==58); md.elements_type(pos,end)=6;
     484                                 pos=find(structmd.elements_type==61); md.elements_type(pos,end)=7;
     485                         end
    476486                         if isnumeric(structmd.rheology_law),
    477487                                 if (structmd.rheology_law==272), md.rheology_law='None';      end
    478488                                 if (structmd.rheology_law==368), md.rheology_law='Paterson';  end
    479489                                 if (structmd.rheology_law==369), md.rheology_law='Arrhenius'; end
     490                         end
     491                         if isnumeric(structmd.groundingline_migration),
     492                                 if (structmd.groundingline_migration==272), md.groundingline_migration='None';      end
     493                                 if (structmd.groundingline_migration==273), md.groundingline_migration='AgressiveMigration';  end
     494                                 if (structmd.groundingline_migration==274), md.groundingline_migration='SoftMigration'; end
     495                         end
     496                         if isnumeric(md.control_type),
     497                                 if (structmd.control_type==143), md.control_type={'DragCoefficient'}; end
     498                                 if (structmd.control_type==190), md.control_type={'RheologyBbar'}; end
     499                                 if (structmd.control_type==147), md.control_type={'Dhdt'}; end
    480500                         end
    481501
Note: See TracChangeset for help on using the changeset viewer.