Changeset 10408


Ignore:
Timestamp:
11/01/11 11:40:59 (13 years ago)
Author:
seroussi
Message:

grounding lines allowed in 3d for Aggressive migration only

Location:
issm/trunk/src/m
Files:
3 edited

Legend:

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

    r10301 r10408  
    4747
    4848                        if ~strcmp(obj.migration,'None'),
    49                                 if (md.mesh.dimension==3),
    50                                         checkmessage(['requesting grounding line migration, but grounding line module only implemented for 2d models !']);
     49                                if (md.mesh.dimension==3 & strcmpi(md.groundingline.migration,'SoftMigration')),
     50                                        checkmessage(['requesting grounding line migration with SoftMigration, but only AgressiveMigration is implemented in 3d models !']);
    5151                                end
    5252                                if isnan(md.geometry.bathymetry),
  • issm/trunk/src/m/classes/transient.m

    r10301 r10408  
    5454                        checkfield(md,'transient.isgroundingline','numel',1,'values',[0 1]);
    5555
    56                         %Check that grounding line migration is in 2d
    57                         if md.transient.isgroundingline & md.mesh.dimension~=2
    58                                 checkmessage(['model not consistent: for a ' md.private.solution ' computation, the grounding line module is only implemented in 2d !']);
    59                         end
    60 
    6156                end % }}}
    6257                function disp(obj) % {{{
  • issm/trunk/src/m/solutions/transient_core.m

    r10313 r10408  
    5858
    5959                if (isgroundingline)
    60                         if (dim==3), error('grounding line migration not implemented in 3d'); end
     60                        if (dim==3 & groundinglinemigration==SoftMigrationEnum), error('grounding line migration not implemented in 3d'); end
    6161                        issmprintf(VerboseSolution,'\n%s',['   computing new grounding line']);
    6262                        [femmodel.elements,femmodel.nodes,femmodel.vertices,femmodel.loads,femmodel.materials,femmodel.parameters]=...
Note: See TracChangeset for help on using the changeset viewer.