Changeset 4683


Ignore:
Timestamp:
07/21/10 07:46:56 (15 years ago)
Author:
Mathieu Morlighem
Message:

added check on spcs

File:
1 edited

Legend:

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

    r4613 r4683  
    226226
    227227        %CHECK THAT WE ARE NOT FULLY CONSTRAINED
    228         if (md.dim==2),
    229                 if isempty(find(~md.spcvelocity(:,1:2))),
    230                         error(['model not consistent: model ' md.name ' is totally constrained, no need to solve!']);
     228        if isempty(find(~md.spcvelocity(:,1:2))),
     229                error(['model not consistent: model ' md.name ' is totally constrained horizontally, no need to solve!']);
     230        end
     231        if (md.dim==3),
     232                if isempty(find(~md.spcvelocity(:,3))),
     233                        error(['model not consistent: model ' md.name ' is totally constrained vertically, no need to solve!']);
    231234                end
    232235        end
Note: See TracChangeset for help on using the changeset viewer.