Changeset 17566


Ignore:
Timestamp:
03/27/14 12:29:18 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed load of old mesh classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/classes/model.m ΒΆ

    r17565 r17566  
    113113                        %2014 March 26th
    114114                        if isa(md.mesh,'mesh'),
    115                                 if(strcmp(meshtype(md.mesh),'2Dhorizontal')),
    116                                         md.mesh=mesh2d(md.mesh);
     115                                disp('Recovering old mesh class');
     116                                if isprop(md.mesh,'dimension'),
     117                                        if md.mesh.dimension==2,
     118                                                md.mesh=mesh2d(md.mesh);
     119                                        else
     120                                                md.mesh=mesh3dprisms(md.mesh);
     121                                        end
    117122                                else
    118                                         md.mesh=mesh3dprisms(md.mesh);
     123                                        md.mesh=mesh2dvertical(md.mesh);
    119124                                end
    120125                        end
Note: See TracChangeset for help on using the changeset viewer.