Changeset 2723


Ignore:
Timestamp:
12/11/09 09:07:19 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added check for balancedvelocities solution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/ismodelselfconsistent.m

    r2714 r2723  
    327327        if any(md.spcthickness(find(md.gridonboundary))~=1),
    328328                error(['model not consistent: model ' md.name ' should have all the nodes on boundary constrained in field spcthickness']);
     329        end
     330end
     331
     332%BALANCEDVELOCITIES
     333if md.analysis_type==BalancedvelocitiesAnalysisEnum
     334
     335        %VELOCITIES MELTING AND ACCUMULATION
     336        fields={'vx','vy','accumulation','melting'};
     337        checksize(md,fields,[md.numberofgrids 1]);
     338        checknan(md,fields);
     339
     340        %SPC
     341        if any(md.spcvelocity(find(md.gridonboundary),[1:2])~=1),
     342                error(['model not consistent: model ' md.name ' should have all the nodes on boundary constrained in field spcvelocity']);
    329343        end
    330344end
Note: See TracChangeset for help on using the changeset viewer.