Changeset 631


Ignore:
Timestamp:
05/28/09 15:05:08 (16 years ago)
Author:
Mathieu Morlighem
Message:

minor

Location:
issm/trunk/src/m/classes/public
Files:
2 edited

Legend:

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

    r465 r631  
    265265if strcmp(md.analysis_type,'parameters')
    266266
     267        %PACKAGE
     268        if ~strcmpi(packagem,'ice'),
     269                disp('parameter solution only supported by package ice yet');
     270                bool=0;return;
     271        end
     272
    267273        %OUTPUT
    268274        if ~iscell(md.parameteroutput)
  • issm/trunk/src/m/classes/public/mechanicalproperties.m

    r629 r631  
    6868nu(location)=B_bar(location);
    6969clear B_bar location second_inv power
    70 mean(nu)
    7170
    7271%compute stress
     
    104103stress.principalaxis1=directionsstress(:,3:4);
    105104stress.effectivevalue=1/sqrt(2)*sqrt(stress.xx.^2+stress.yy.^2+2*stress.xy.^2);
     105md.stress=stress;
     106
    106107strainrate=struct('xx',[],'yy',[],'xy',[],'principalvalue1',[],'principalaxis1',[],'principalvalue2',[],'principalaxis2',[],'effectivevalue',[]);
    107108strainrate.xx=ux;
     
    113114strainrate.principalaxis1=directionsstrain(:,3:4);
    114115strainrate.effectivevalue=1/sqrt(2)*sqrt(strainrate.xx.^2+strainrate.yy.^2+2*strainrate.xy.^2);
    115 md.stress=stress;
    116116md.strainrate=strainrate;
Note: See TracChangeset for help on using the changeset viewer.