Changeset 18045


Ignore:
Timestamp:
05/22/14 09:38:39 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed consistency check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/damage.m

    r18044 r18045  
    169169                                md = checkfield(md,'fieldname','damage.equiv_stress','numel',[1],'values',[0 1]);
    170170                                md = checkfield(md,'fieldname','damage.requested_outputs','stringrow',1);
    171                         elseif (obj.law>0),
     171                        elseif (obj.law~=0),
    172172                                if (solution==DamageEvolutionSolutionEnum),
    173173                                        error('Invalid evolution law (md.damage.law) for a damage solution');
    174174                                end
    175                         else
    176                                 error('invalid damage evolution law');
    177                         end
    178 
     175                        end
    179176                end % }}}
    180177                function list=defaultoutputs(self,md) % {{{
Note: See TracChangeset for help on using the changeset viewer.