Ignore:
Timestamp:
07/19/11 16:28:47 (14 years ago)
Author:
Mathieu Morlighem
Message:

Simplified spcthickness (use new NaN scheme)

File:
1 edited

Legend:

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

    r9049 r9075  
    224224        if any(md.thickness<=0),
    225225                pos=find(md.thickness<=0);
    226                 if any(find(md.spcthickness(pos,1)==0)),
     226                if any(isnan(md.spcthickness(pos))),
    227227                        message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']);
    228228                end
     
    369369                        if any(md.thickness<=0),
    370370                                pos=find(md.thickness<=0);
    371                                 if any(find(md.spcthickness(pos,1)==0)),
     371                                if any(isnan(md.spcthickness(pos))),
    372372                                        message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']);
    373373                                end
     
    458458                        checksize(md,fields,[md.numberofnodes 1]);
    459459                        checknan(md,fields);
    460 
    461                         %CHECK THAT WE ARE NOT FULLY CONSTRAINED
    462                         if (md.dim==2),
    463                                 if isnan(find(~md.spcthickness(:,1))),
    464                                         message(['model not consistent: model ' md.name ' is totally constrained for prognostic, no need to solve!']);
    465                                 end
    466                         end
    467460                        %}}}
    468461                case HydrologyAnalysisEnum,
     
    560553                        checksize(md,fields,[md.numberofnodes 1]);
    561554                        checknan(md,fields);
    562 
    563                         %SPC                             
    564                         %       if ~md.prognostic_DG,
    565                         %               if any(md.spcthickness(find(md.nodeonboundary))~=1),             
    566                         %                       message(['model not consistent: model ' md.name ' should have all the nodes on boundary constrained in field spcthickness']);                   
    567                         %               end
    568                         %       end
    569555
    570556                        %Triangle with zero velocity
Note: See TracChangeset for help on using the changeset viewer.