Changeset 21206


Ignore:
Timestamp:
09/15/16 21:08:55 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added error message to avoid tracking the bug of IsInput, wasting EVERYONE's time

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r21112 r21206  
    13831383void       Element::InputDuplicate(int original_enum,int new_enum){/*{{{*/
    13841384
     1385        if(!IsInput(original_enum)) _error_("Enum "<<EnumToStringx(original_enum)<<" is not in IsInput");
     1386
    13851387        /*Call inputs method*/
    1386         if(IsInput(original_enum)) inputs->DuplicateInput(original_enum,new_enum);
     1388        this->inputs->DuplicateInput(original_enum,new_enum);
    13871389
    13881390}
     
    13911393
    13921394        /*Check that name is an element input*/
    1393         if(!IsInput(name)) return;
     1395        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    13941396
    13951397        /*update input*/
     
    14001402
    14011403        /*Check that name is an element input*/
    1402         if(!IsInput(name)) return;
     1404        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    14031405
    14041406        /*update input*/
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r21068 r21206  
    10801080
    10811081        /*Get out if this is not an element input*/
    1082         if(!IsInput(control_enum)) return;
     1082        if(!IsInput(control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput");
    10831083
    10841084        /*Prepare index list*/
     
    15911591
    15921592        /*Check that name is an element input*/
    1593         if (!IsInput(name)) return;
     1593        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    15941594
    15951595        switch(type){
     
    34103410
    34113411        /*Check that name is an element input*/
    3412         if (!IsInput(name)) return;
     3412        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    34133413
    34143414        switch(type){
     
    34453445
    34463446        /*Check that name is an element input*/
    3447         if (!IsInput(name)) return;
     3447        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    34483448
    34493449        switch(type){
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r21079 r21206  
    14381438
    14391439        /*Get out if this is not an element input*/
    1440         if(!IsInput(control_enum)) return;
     1440        if(!IsInput(control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput");
    14411441
    14421442        /*Prepare index list*/
     
    18821882
    18831883        /*Check that name is an element input*/
    1884         if (!IsInput(name)) return;
     1884        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    18851885
    18861886        int         numnodes;
     
    40874087
    40884088        /*Check that name is an element input*/
    4089         if (!IsInput(name)) return;
     4089        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    40904090
    40914091        switch(type){
     
    41224122
    41234123        /*Check that name is an element input*/
    4124         if (!IsInput(name)) return;
     4124        if(!IsInput(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");
    41254125
    41264126        switch(type){
Note: See TracChangeset for help on using the changeset viewer.