Changeset 5884


Ignore:
Timestamp:
09/18/10 13:08:45 (15 years ago)
Author:
Mathieu Morlighem
Message:

Error message instead of asserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Materials/Matice.cpp

    r5373 r5884  
    333333
    334334        /*Checks in debugging mode*/
     335        if(viscosity<=0) ISSMERROR("Negative viscosity");
    335336        ISSMASSERT(B>0);
    336337        ISSMASSERT(n>0);
    337         ISSMASSERT(viscosity>0);
    338338
    339339        /*Return: */
     
    404404
    405405        /*Checks in debugging mode*/
     406        if(viscosity3d<=0) ISSMERROR("Negative viscosity");
    406407        ISSMASSERT(B>0);
    407408        ISSMASSERT(n>0);
    408         ISSMASSERT(viscosity3d>0);
    409409
    410410        /*Assign output pointers:*/
     
    476476
    477477        /*Checks in debugging mode*/
     478        if(viscosity3d<=0) ISSMERROR("Negative viscosity");
    478479        ISSMASSERT(B>0);
    479480        ISSMASSERT(n>0);
    480         ISSMASSERT(viscosity3d>0);
    481481
    482482        /*Assign output pointers:*/
Note: See TracChangeset for help on using the changeset viewer.